{"action":"created","comment":{"url":"https://api.github.com/repos/krzyurb/K2R/pulls/comments/47444133","id":47444133,"diff_hunk":"@@ -0,0 +1,24 @@\n+module Packages\n+  class Picker \n+\n+   def choose_package(user)\n+    @user = user\n+    self.send(\"#{user.role.symbol}_packages\")\n+   end\n+\n+   attr_reader :user\n+   delegate :id, to: :user\n+\n+    def admin_packages\n+      Package.all\n+    end   \n+\n+    def worker_packages","path":"app/services/packages/picker.rb","position":16,"original_position":16,"commit_id":"ddf18e54dd25b481b697998ce61e09868826d766","original_commit_id":"ddf18e54dd25b481b697998ce61e09868826d766","user":{"login":"krzyurb","id":11517908,"avatar_url":"https://avatars.githubusercontent.com/u/11517908?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Inconsistent indentation detected.](https://www.codacy.com/app/krzyurb/K2R/file/1560428663/issues/source?bid=2986241&fileBranchId=2992020#l16)","created_at":"2015-12-13T13:03:38Z","updated_at":"2015-12-13T13:03:38Z","html_url":"https://github.com/krzyurb/K2R/pull/13#discussion_r47444133","pull_request_url":"https://api.github.com/repos/krzyurb/K2R/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/krzyurb/K2R/pulls/comments/47444133"},"html":{"href":"https://github.com/krzyurb/K2R/pull/13#discussion_r47444133"},"pull_request":{"href":"https://api.github.com/repos/krzyurb/K2R/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/krzyurb/K2R/pulls/13","id":52068510,"html_url":"https://github.com/krzyurb/K2R/pull/13","diff_url":"https://github.com/krzyurb/K2R/pull/13.diff","patch_url":"https://github.com/krzyurb/K2R/pull/13.patch","issue_url":"https://api.github.com/repos/krzyurb/K2R/issues/13","number":13,"state":"open","locked":false,"title":"K2R-Initial commit for packages with packages types","user":{"login":"Fiiii","id":10417758,"avatar_url":"https://avatars.githubusercontent.com/u/10417758?v=3","gravatar_id":"","url":"https://api.github.com/users/Fiiii","html_url":"https://github.com/Fiiii","followers_url":"https://api.github.com/users/Fiiii/followers","following_url":"https://api.github.com/users/Fiiii/following{/other_user}","gists_url":"https://api.github.com/users/Fiiii/gists{/gist_id}","starred_url":"https://api.github.com/users/Fiiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fiiii/subscriptions","organizations_url":"https://api.github.com/users/Fiiii/orgs","repos_url":"https://api.github.com/users/Fiiii/repos","events_url":"https://api.github.com/users/Fiiii/events{/privacy}","received_events_url":"https://api.github.com/users/Fiiii/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-29T19:14:17Z","updated_at":"2015-12-13T13:03:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c34bacf119602a0144d7359b1db1e89595f3e301","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krzyurb/K2R/pulls/13/commits","review_comments_url":"https://api.github.com/repos/krzyurb/K2R/pulls/13/comments","review_comment_url":"https://api.github.com/repos/krzyurb/K2R/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krzyurb/K2R/issues/13/comments","statuses_url":"https://api.github.com/repos/krzyurb/K2R/statuses/ddf18e54dd25b481b697998ce61e09868826d766","head":{"label":"krzyurb:K2R_8","ref":"K2R_8","sha":"ddf18e54dd25b481b697998ce61e09868826d766","user":{"login":"krzyurb","id":11517908,"avatar_url":"https://avatars.githubusercontent.com/u/11517908?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"repo":{"id":46411387,"name":"K2R","full_name":"krzyurb/K2R","owner":{"login":"krzyurb","id":11517908,"avatar_url":"https://avatars.githubusercontent.com/u/11517908?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzyurb/K2R","description":"System wspomagający firmę kurierską","fork":false,"url":"https://api.github.com/repos/krzyurb/K2R","forks_url":"https://api.github.com/repos/krzyurb/K2R/forks","keys_url":"https://api.github.com/repos/krzyurb/K2R/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzyurb/K2R/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzyurb/K2R/teams","hooks_url":"https://api.github.com/repos/krzyurb/K2R/hooks","issue_events_url":"https://api.github.com/repos/krzyurb/K2R/issues/events{/number}","events_url":"https://api.github.com/repos/krzyurb/K2R/events","assignees_url":"https://api.github.com/repos/krzyurb/K2R/assignees{/user}","branches_url":"https://api.github.com/repos/krzyurb/K2R/branches{/branch}","tags_url":"https://api.github.com/repos/krzyurb/K2R/tags","blobs_url":"https://api.github.com/repos/krzyurb/K2R/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzyurb/K2R/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzyurb/K2R/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzyurb/K2R/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzyurb/K2R/statuses/{sha}","languages_url":"https://api.github.com/repos/krzyurb/K2R/languages","stargazers_url":"https://api.github.com/repos/krzyurb/K2R/stargazers","contributors_url":"https://api.github.com/repos/krzyurb/K2R/contributors","subscribers_url":"https://api.github.com/repos/krzyurb/K2R/subscribers","subscription_url":"https://api.github.com/repos/krzyurb/K2R/subscription","commits_url":"https://api.github.com/repos/krzyurb/K2R/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzyurb/K2R/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzyurb/K2R/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzyurb/K2R/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzyurb/K2R/contents/{+path}","compare_url":"https://api.github.com/repos/krzyurb/K2R/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzyurb/K2R/merges","archive_url":"https://api.github.com/repos/krzyurb/K2R/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzyurb/K2R/downloads","issues_url":"https://api.github.com/repos/krzyurb/K2R/issues{/number}","pulls_url":"https://api.github.com/repos/krzyurb/K2R/pulls{/number}","milestones_url":"https://api.github.com/repos/krzyurb/K2R/milestones{/number}","notifications_url":"https://api.github.com/repos/krzyurb/K2R/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzyurb/K2R/labels{/name}","releases_url":"https://api.github.com/repos/krzyurb/K2R/releases{/id}","created_at":"2015-11-18T10:23:37Z","updated_at":"2015-12-02T22:32:06Z","pushed_at":"2015-12-13T12:45:06Z","git_url":"git://github.com/krzyurb/K2R.git","ssh_url":"git@github.com:krzyurb/K2R.git","clone_url":"https://github.com/krzyurb/K2R.git","svn_url":"https://github.com/krzyurb/K2R","homepage":"","size":672,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"krzyurb:master","ref":"master","sha":"f09123013f886263de0549aa831ad18a6414bfa4","user":{"login":"krzyurb","id":11517908,"avatar_url":"https://avatars.githubusercontent.com/u/11517908?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"repo":{"id":46411387,"name":"K2R","full_name":"krzyurb/K2R","owner":{"login":"krzyurb","id":11517908,"avatar_url":"https://avatars.githubusercontent.com/u/11517908?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyurb","html_url":"https://github.com/krzyurb","followers_url":"https://api.github.com/users/krzyurb/followers","following_url":"https://api.github.com/users/krzyurb/following{/other_user}","gists_url":"https://api.github.com/users/krzyurb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyurb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyurb/subscriptions","organizations_url":"https://api.github.com/users/krzyurb/orgs","repos_url":"https://api.github.com/users/krzyurb/repos","events_url":"https://api.github.com/users/krzyurb/events{/privacy}","received_events_url":"https://api.github.com/users/krzyurb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzyurb/K2R","description":"System wspomagający firmę kurierską","fork":false,"url":"https://api.github.com/repos/krzyurb/K2R","forks_url":"https://api.github.com/repos/krzyurb/K2R/forks","keys_url":"https://api.github.com/repos/krzyurb/K2R/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzyurb/K2R/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzyurb/K2R/teams","hooks_url":"https://api.github.com/repos/krzyurb/K2R/hooks","issue_events_url":"https://api.github.com/repos/krzyurb/K2R/issues/events{/number}","events_url":"https://api.github.com/repos/krzyurb/K2R/events","assignees_url":"https://api.github.com/repos/krzyurb/K2R/assignees{/user}","branches_url":"https://api.github.com/repos/krzyurb/K2R/branches{/branch}","tags_url":"https://api.github.com/repos/krzyurb/K2R/tags","blobs_url":"https://api.github.com/repos/krzyurb/K2R/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzyurb/K2R/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzyurb/K2R/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzyurb/K2R/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzyurb/K2R/statuses/{sha}","languages_url":"https://api.github.com/repos/krzyurb/K2R/languages","stargazers_url":"https://api.github.com/repos/krzyurb/K2R/stargazers","contributors_url":"https://api.github.com/repos/krzyurb/K2R/contributors","subscribers_url":"https://api.github.com/repos/krzyurb/K2R/subscribers","subscription_url":"https://api.github.com/repos/krzyurb/K2R/subscription","commits_url":"https://api.github.com/repos/krzyurb/K2R/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzyurb/K2R/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzyurb/K2R/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzyurb/K2R/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzyurb/K2R/contents/{+path}","compare_url":"https://api.github.com/repos/krzyurb/K2R/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzyurb/K2R/merges","archive_url":"https://api.github.com/repos/krzyurb/K2R/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzyurb/K2R/downloads","issues_url":"https://api.github.com/repos/krzyurb/K2R/issues{/number}","pulls_url":"https://api.github.com/repos/krzyurb/K2R/pulls{/number}","milestones_url":"https://api.github.com/repos/krzyurb/K2R/milestones{/number}","notifications_url":"https://api.github.com/repos/krzyurb/K2R/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzyurb/K2R/labels{/name}","releases_url":"https://api.github.com/repos/krzyurb/K2R/releases{/id}","created_at":"2015-11-18T10:23:37Z","updated_at":"2015-12-02T22:32:06Z","pushed_at":"2015-12-13T12:45:06Z","git_url":"git://github.com/krzyurb/K2R.git","ssh_url":"git@github.com:krzyurb/K2R.git","clone_url":"https://github.com/krzyurb/K2R.git","svn_url":"https://github.com/krzyurb/K2R","homepage":"","size":672,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krzyurb/K2R/pulls/13"},"html":{"href":"https://github.com/krzyurb/K2R/pull/13"},"issue":{"href":"https://api.github.com/repos/krzyurb/K2R/issues/13"},"comments":{"href":"https://api.github.com/repos/krzyurb/K2R/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/krzyurb/K2R/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/krzyurb/K2R/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krzyurb/K2R/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/krzyurb/K2R/statuses/ddf18e54dd25b481b697998ce61e09868826d766"}}}}