{"action":"created","comment":{"url":"https://api.github.com/repos/balanrupa/blocitoff/pulls/comments/41713251","id":41713251,"diff_hunk":"@@ -0,0 +1,37 @@\n+class ItemsController < ApplicationController\n+  def create\n+    @item = Item.new(item_params)\n+    @item.user = current_user","path":"app/controllers/items_controller.rb","position":4,"original_position":4,"commit_id":"bba272b5391f190207035a7adb96b91fbbb96776","original_commit_id":"bba272b5391f190207035a7adb96b91fbbb96776","user":{"login":"alexstophel","id":3820999,"avatar_url":"https://avatars.githubusercontent.com/u/3820999?v=3","gravatar_id":"","url":"https://api.github.com/users/alexstophel","html_url":"https://github.com/alexstophel","followers_url":"https://api.github.com/users/alexstophel/followers","following_url":"https://api.github.com/users/alexstophel/following{/other_user}","gists_url":"https://api.github.com/users/alexstophel/gists{/gist_id}","starred_url":"https://api.github.com/users/alexstophel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexstophel/subscriptions","organizations_url":"https://api.github.com/users/alexstophel/orgs","repos_url":"https://api.github.com/users/alexstophel/repos","events_url":"https://api.github.com/users/alexstophel/events{/privacy}","received_events_url":"https://api.github.com/users/alexstophel/received_events","type":"User","site_admin":false},"body":"You could consolidate these two lines into one: `current_user.items.build(item_params)`.","created_at":"2015-10-11T17:43:14Z","updated_at":"2015-10-11T17:43:14Z","html_url":"https://github.com/balanrupa/blocitoff/pull/3#discussion_r41713251","pull_request_url":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/balanrupa/blocitoff/pulls/comments/41713251"},"html":{"href":"https://github.com/balanrupa/blocitoff/pull/3#discussion_r41713251"},"pull_request":{"href":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3","id":47371148,"html_url":"https://github.com/balanrupa/blocitoff/pull/3","diff_url":"https://github.com/balanrupa/blocitoff/pull/3.diff","patch_url":"https://github.com/balanrupa/blocitoff/pull/3.patch","issue_url":"https://api.github.com/repos/balanrupa/blocitoff/issues/3","number":3,"state":"open","locked":false,"title":"checkpoints4 through checkpoints9","user":{"login":"balanrupa","id":13308035,"avatar_url":"https://avatars.githubusercontent.com/u/13308035?v=3","gravatar_id":"","url":"https://api.github.com/users/balanrupa","html_url":"https://github.com/balanrupa","followers_url":"https://api.github.com/users/balanrupa/followers","following_url":"https://api.github.com/users/balanrupa/following{/other_user}","gists_url":"https://api.github.com/users/balanrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/balanrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balanrupa/subscriptions","organizations_url":"https://api.github.com/users/balanrupa/orgs","repos_url":"https://api.github.com/users/balanrupa/repos","events_url":"https://api.github.com/users/balanrupa/events{/privacy}","received_events_url":"https://api.github.com/users/balanrupa/received_events","type":"User","site_admin":false},"body":"was able to complete checkpoints4 through 9","created_at":"2015-10-11T17:12:28Z","updated_at":"2015-10-11T17:43:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e8a017296ce922470f63954e8ccc4bcc8aff422","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3/commits","review_comments_url":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3/comments","review_comment_url":"https://api.github.com/repos/balanrupa/blocitoff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/balanrupa/blocitoff/issues/3/comments","statuses_url":"https://api.github.com/repos/balanrupa/blocitoff/statuses/bba272b5391f190207035a7adb96b91fbbb96776","head":{"label":"balanrupa:checkpoint-4","ref":"checkpoint-4","sha":"bba272b5391f190207035a7adb96b91fbbb96776","user":{"login":"balanrupa","id":13308035,"avatar_url":"https://avatars.githubusercontent.com/u/13308035?v=3","gravatar_id":"","url":"https://api.github.com/users/balanrupa","html_url":"https://github.com/balanrupa","followers_url":"https://api.github.com/users/balanrupa/followers","following_url":"https://api.github.com/users/balanrupa/following{/other_user}","gists_url":"https://api.github.com/users/balanrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/balanrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balanrupa/subscriptions","organizations_url":"https://api.github.com/users/balanrupa/orgs","repos_url":"https://api.github.com/users/balanrupa/repos","events_url":"https://api.github.com/users/balanrupa/events{/privacy}","received_events_url":"https://api.github.com/users/balanrupa/received_events","type":"User","site_admin":false},"repo":{"id":43651240,"name":"blocitoff","full_name":"balanrupa/blocitoff","owner":{"login":"balanrupa","id":13308035,"avatar_url":"https://avatars.githubusercontent.com/u/13308035?v=3","gravatar_id":"","url":"https://api.github.com/users/balanrupa","html_url":"https://github.com/balanrupa","followers_url":"https://api.github.com/users/balanrupa/followers","following_url":"https://api.github.com/users/balanrupa/following{/other_user}","gists_url":"https://api.github.com/users/balanrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/balanrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balanrupa/subscriptions","organizations_url":"https://api.github.com/users/balanrupa/orgs","repos_url":"https://api.github.com/users/balanrupa/repos","events_url":"https://api.github.com/users/balanrupa/events{/privacy}","received_events_url":"https://api.github.com/users/balanrupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balanrupa/blocitoff","description":"","fork":false,"url":"https://api.github.com/repos/balanrupa/blocitoff","forks_url":"https://api.github.com/repos/balanrupa/blocitoff/forks","keys_url":"https://api.github.com/repos/balanrupa/blocitoff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balanrupa/blocitoff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balanrupa/blocitoff/teams","hooks_url":"https://api.github.com/repos/balanrupa/blocitoff/hooks","issue_events_url":"https://api.github.com/repos/balanrupa/blocitoff/issues/events{/number}","events_url":"https://api.github.com/repos/balanrupa/blocitoff/events","assignees_url":"https://api.github.com/repos/balanrupa/blocitoff/assignees{/user}","branches_url":"https://api.github.com/repos/balanrupa/blocitoff/branches{/branch}","tags_url":"https://api.github.com/repos/balanrupa/blocitoff/tags","blobs_url":"https://api.github.com/repos/balanrupa/blocitoff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balanrupa/blocitoff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balanrupa/blocitoff/git/refs{/sha}","trees_url":"https://api.github.com/repos/balanrupa/blocitoff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balanrupa/blocitoff/statuses/{sha}","languages_url":"https://api.github.com/repos/balanrupa/blocitoff/languages","stargazers_url":"https://api.github.com/repos/balanrupa/blocitoff/stargazers","contributors_url":"https://api.github.com/repos/balanrupa/blocitoff/contributors","subscribers_url":"https://api.github.com/repos/balanrupa/blocitoff/subscribers","subscription_url":"https://api.github.com/repos/balanrupa/blocitoff/subscription","commits_url":"https://api.github.com/repos/balanrupa/blocitoff/commits{/sha}","git_commits_url":"https://api.github.com/repos/balanrupa/blocitoff/git/commits{/sha}","comments_url":"https://api.github.com/repos/balanrupa/blocitoff/comments{/number}","issue_comment_url":"https://api.github.com/repos/balanrupa/blocitoff/issues/comments{/number}","contents_url":"https://api.github.com/repos/balanrupa/blocitoff/contents/{+path}","compare_url":"https://api.github.com/repos/balanrupa/blocitoff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balanrupa/blocitoff/merges","archive_url":"https://api.github.com/repos/balanrupa/blocitoff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balanrupa/blocitoff/downloads","issues_url":"https://api.github.com/repos/balanrupa/blocitoff/issues{/number}","pulls_url":"https://api.github.com/repos/balanrupa/blocitoff/pulls{/number}","milestones_url":"https://api.github.com/repos/balanrupa/blocitoff/milestones{/number}","notifications_url":"https://api.github.com/repos/balanrupa/blocitoff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balanrupa/blocitoff/labels{/name}","releases_url":"https://api.github.com/repos/balanrupa/blocitoff/releases{/id}","created_at":"2015-10-04T20:19:40Z","updated_at":"2015-10-04T20:20:38Z","pushed_at":"2015-10-11T17:12:29Z","git_url":"git://github.com/balanrupa/blocitoff.git","ssh_url":"git@github.com:balanrupa/blocitoff.git","clone_url":"https://github.com/balanrupa/blocitoff.git","svn_url":"https://github.com/balanrupa/blocitoff","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"balanrupa:master","ref":"master","sha":"2edf4ba6b7441cfd85a9ebd358e7d4d1c072794e","user":{"login":"balanrupa","id":13308035,"avatar_url":"https://avatars.githubusercontent.com/u/13308035?v=3","gravatar_id":"","url":"https://api.github.com/users/balanrupa","html_url":"https://github.com/balanrupa","followers_url":"https://api.github.com/users/balanrupa/followers","following_url":"https://api.github.com/users/balanrupa/following{/other_user}","gists_url":"https://api.github.com/users/balanrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/balanrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balanrupa/subscriptions","organizations_url":"https://api.github.com/users/balanrupa/orgs","repos_url":"https://api.github.com/users/balanrupa/repos","events_url":"https://api.github.com/users/balanrupa/events{/privacy}","received_events_url":"https://api.github.com/users/balanrupa/received_events","type":"User","site_admin":false},"repo":{"id":43651240,"name":"blocitoff","full_name":"balanrupa/blocitoff","owner":{"login":"balanrupa","id":13308035,"avatar_url":"https://avatars.githubusercontent.com/u/13308035?v=3","gravatar_id":"","url":"https://api.github.com/users/balanrupa","html_url":"https://github.com/balanrupa","followers_url":"https://api.github.com/users/balanrupa/followers","following_url":"https://api.github.com/users/balanrupa/following{/other_user}","gists_url":"https://api.github.com/users/balanrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/balanrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balanrupa/subscriptions","organizations_url":"https://api.github.com/users/balanrupa/orgs","repos_url":"https://api.github.com/users/balanrupa/repos","events_url":"https://api.github.com/users/balanrupa/events{/privacy}","received_events_url":"https://api.github.com/users/balanrupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balanrupa/blocitoff","description":"","fork":false,"url":"https://api.github.com/repos/balanrupa/blocitoff","forks_url":"https://api.github.com/repos/balanrupa/blocitoff/forks","keys_url":"https://api.github.com/repos/balanrupa/blocitoff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balanrupa/blocitoff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balanrupa/blocitoff/teams","hooks_url":"https://api.github.com/repos/balanrupa/blocitoff/hooks","issue_events_url":"https://api.github.com/repos/balanrupa/blocitoff/issues/events{/number}","events_url":"https://api.github.com/repos/balanrupa/blocitoff/events","assignees_url":"https://api.github.com/repos/balanrupa/blocitoff/assignees{/user}","branches_url":"https://api.github.com/repos/balanrupa/blocitoff/branches{/branch}","tags_url":"https://api.github.com/repos/balanrupa/blocitoff/tags","blobs_url":"https://api.github.com/repos/balanrupa/blocitoff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balanrupa/blocitoff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balanrupa/blocitoff/git/refs{/sha}","trees_url":"https://api.github.com/repos/balanrupa/blocitoff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balanrupa/blocitoff/statuses/{sha}","languages_url":"https://api.github.com/repos/balanrupa/blocitoff/languages","stargazers_url":"https://api.github.com/repos/balanrupa/blocitoff/stargazers","contributors_url":"https://api.github.com/repos/balanrupa/blocitoff/contributors","subscribers_url":"https://api.github.com/repos/balanrupa/blocitoff/subscribers","subscription_url":"https://api.github.com/repos/balanrupa/blocitoff/subscription","commits_url":"https://api.github.com/repos/balanrupa/blocitoff/commits{/sha}","git_commits_url":"https://api.github.com/repos/balanrupa/blocitoff/git/commits{/sha}","comments_url":"https://api.github.com/repos/balanrupa/blocitoff/comments{/number}","issue_comment_url":"https://api.github.com/repos/balanrupa/blocitoff/issues/comments{/number}","contents_url":"https://api.github.com/repos/balanrupa/blocitoff/contents/{+path}","compare_url":"https://api.github.com/repos/balanrupa/blocitoff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balanrupa/blocitoff/merges","archive_url":"https://api.github.com/repos/balanrupa/blocitoff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balanrupa/blocitoff/downloads","issues_url":"https://api.github.com/repos/balanrupa/blocitoff/issues{/number}","pulls_url":"https://api.github.com/repos/balanrupa/blocitoff/pulls{/number}","milestones_url":"https://api.github.com/repos/balanrupa/blocitoff/milestones{/number}","notifications_url":"https://api.github.com/repos/balanrupa/blocitoff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balanrupa/blocitoff/labels{/name}","releases_url":"https://api.github.com/repos/balanrupa/blocitoff/releases{/id}","created_at":"2015-10-04T20:19:40Z","updated_at":"2015-10-04T20:20:38Z","pushed_at":"2015-10-11T17:12:29Z","git_url":"git://github.com/balanrupa/blocitoff.git","ssh_url":"git@github.com:balanrupa/blocitoff.git","clone_url":"https://github.com/balanrupa/blocitoff.git","svn_url":"https://github.com/balanrupa/blocitoff","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3"},"html":{"href":"https://github.com/balanrupa/blocitoff/pull/3"},"issue":{"href":"https://api.github.com/repos/balanrupa/blocitoff/issues/3"},"comments":{"href":"https://api.github.com/repos/balanrupa/blocitoff/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/balanrupa/blocitoff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/balanrupa/blocitoff/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/balanrupa/blocitoff/statuses/bba272b5391f190207035a7adb96b91fbbb96776"}}}}