{"action":"created","comment":{"url":"https://api.github.com/repos/bmchrist/camping-gear/pulls/comments/64967676","id":64967676,"diff_hunk":"@@ -2,4 +2,19 @@ class ItemsController < ApplicationController\n   def index\n     @items = Item.all\n   end\n+\n+  def create\n+    @item = Item.new(item_params)\n+\n+    if @item.save\n+      render json: @item\n+    else\n+      render json: @item.errors, status: :unprocessable_entity\n+    end\n+  end\n+\n+private","path":"app/controllers/items_controller.rb","position":15,"original_position":15,"commit_id":"96ab9ab8328e401d27ba481a1f10a1ae6f4813fd","original_commit_id":"96ab9ab8328e401d27ba481a1f10a1ae6f4813fd","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Indent access modifiers like `private`.<br>Keep a blank line before and after `private`.","created_at":"2016-05-27T21:18:03Z","updated_at":"2016-05-27T21:18:03Z","html_url":"https://github.com/bmchrist/camping-gear/pull/10#discussion_r64967676","pull_request_url":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/bmchrist/camping-gear/pulls/comments/64967676"},"html":{"href":"https://github.com/bmchrist/camping-gear/pull/10#discussion_r64967676"},"pull_request":{"href":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10","id":71774092,"html_url":"https://github.com/bmchrist/camping-gear/pull/10","diff_url":"https://github.com/bmchrist/camping-gear/pull/10.diff","patch_url":"https://github.com/bmchrist/camping-gear/pull/10.patch","issue_url":"https://api.github.com/repos/bmchrist/camping-gear/issues/10","number":10,"state":"open","locked":false,"title":"Update create items","user":{"login":"bmchrist","id":1119644,"avatar_url":"https://avatars.githubusercontent.com/u/1119644?v=3","gravatar_id":"","url":"https://api.github.com/users/bmchrist","html_url":"https://github.com/bmchrist","followers_url":"https://api.github.com/users/bmchrist/followers","following_url":"https://api.github.com/users/bmchrist/following{/other_user}","gists_url":"https://api.github.com/users/bmchrist/gists{/gist_id}","starred_url":"https://api.github.com/users/bmchrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmchrist/subscriptions","organizations_url":"https://api.github.com/users/bmchrist/orgs","repos_url":"https://api.github.com/users/bmchrist/repos","events_url":"https://api.github.com/users/bmchrist/events{/privacy}","received_events_url":"https://api.github.com/users/bmchrist/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-27T21:17:59Z","updated_at":"2016-05-27T21:18:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbfd6bfa49dcbbe589f6e0e2ac122c48f9eb3260","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10/commits","review_comments_url":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10/comments","review_comment_url":"https://api.github.com/repos/bmchrist/camping-gear/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bmchrist/camping-gear/issues/10/comments","statuses_url":"https://api.github.com/repos/bmchrist/camping-gear/statuses/96ab9ab8328e401d27ba481a1f10a1ae6f4813fd","head":{"label":"bmchrist:update_create_items","ref":"update_create_items","sha":"96ab9ab8328e401d27ba481a1f10a1ae6f4813fd","user":{"login":"bmchrist","id":1119644,"avatar_url":"https://avatars.githubusercontent.com/u/1119644?v=3","gravatar_id":"","url":"https://api.github.com/users/bmchrist","html_url":"https://github.com/bmchrist","followers_url":"https://api.github.com/users/bmchrist/followers","following_url":"https://api.github.com/users/bmchrist/following{/other_user}","gists_url":"https://api.github.com/users/bmchrist/gists{/gist_id}","starred_url":"https://api.github.com/users/bmchrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmchrist/subscriptions","organizations_url":"https://api.github.com/users/bmchrist/orgs","repos_url":"https://api.github.com/users/bmchrist/repos","events_url":"https://api.github.com/users/bmchrist/events{/privacy}","received_events_url":"https://api.github.com/users/bmchrist/received_events","type":"User","site_admin":false},"repo":{"id":59858607,"name":"camping-gear","full_name":"bmchrist/camping-gear","owner":{"login":"bmchrist","id":1119644,"avatar_url":"https://avatars.githubusercontent.com/u/1119644?v=3","gravatar_id":"","url":"https://api.github.com/users/bmchrist","html_url":"https://github.com/bmchrist","followers_url":"https://api.github.com/users/bmchrist/followers","following_url":"https://api.github.com/users/bmchrist/following{/other_user}","gists_url":"https://api.github.com/users/bmchrist/gists{/gist_id}","starred_url":"https://api.github.com/users/bmchrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmchrist/subscriptions","organizations_url":"https://api.github.com/users/bmchrist/orgs","repos_url":"https://api.github.com/users/bmchrist/repos","events_url":"https://api.github.com/users/bmchrist/events{/privacy}","received_events_url":"https://api.github.com/users/bmchrist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmchrist/camping-gear","description":"For tracking/packing camping gear","fork":false,"url":"https://api.github.com/repos/bmchrist/camping-gear","forks_url":"https://api.github.com/repos/bmchrist/camping-gear/forks","keys_url":"https://api.github.com/repos/bmchrist/camping-gear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmchrist/camping-gear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmchrist/camping-gear/teams","hooks_url":"https://api.github.com/repos/bmchrist/camping-gear/hooks","issue_events_url":"https://api.github.com/repos/bmchrist/camping-gear/issues/events{/number}","events_url":"https://api.github.com/repos/bmchrist/camping-gear/events","assignees_url":"https://api.github.com/repos/bmchrist/camping-gear/assignees{/user}","branches_url":"https://api.github.com/repos/bmchrist/camping-gear/branches{/branch}","tags_url":"https://api.github.com/repos/bmchrist/camping-gear/tags","blobs_url":"https://api.github.com/repos/bmchrist/camping-gear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmchrist/camping-gear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmchrist/camping-gear/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmchrist/camping-gear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmchrist/camping-gear/statuses/{sha}","languages_url":"https://api.github.com/repos/bmchrist/camping-gear/languages","stargazers_url":"https://api.github.com/repos/bmchrist/camping-gear/stargazers","contributors_url":"https://api.github.com/repos/bmchrist/camping-gear/contributors","subscribers_url":"https://api.github.com/repos/bmchrist/camping-gear/subscribers","subscription_url":"https://api.github.com/repos/bmchrist/camping-gear/subscription","commits_url":"https://api.github.com/repos/bmchrist/camping-gear/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmchrist/camping-gear/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmchrist/camping-gear/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmchrist/camping-gear/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmchrist/camping-gear/contents/{+path}","compare_url":"https://api.github.com/repos/bmchrist/camping-gear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmchrist/camping-gear/merges","archive_url":"https://api.github.com/repos/bmchrist/camping-gear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmchrist/camping-gear/downloads","issues_url":"https://api.github.com/repos/bmchrist/camping-gear/issues{/number}","pulls_url":"https://api.github.com/repos/bmchrist/camping-gear/pulls{/number}","milestones_url":"https://api.github.com/repos/bmchrist/camping-gear/milestones{/number}","notifications_url":"https://api.github.com/repos/bmchrist/camping-gear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmchrist/camping-gear/labels{/name}","releases_url":"https://api.github.com/repos/bmchrist/camping-gear/releases{/id}","deployments_url":"https://api.github.com/repos/bmchrist/camping-gear/deployments","created_at":"2016-05-27T19:31:51Z","updated_at":"2016-05-27T20:08:22Z","pushed_at":"2016-05-27T21:17:59Z","git_url":"git://github.com/bmchrist/camping-gear.git","ssh_url":"git@github.com:bmchrist/camping-gear.git","clone_url":"https://github.com/bmchrist/camping-gear.git","svn_url":"https://github.com/bmchrist/camping-gear","homepage":null,"size":29,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"bmchrist:master","ref":"master","sha":"8a6705569996117f11e419536cd31a063d255f86","user":{"login":"bmchrist","id":1119644,"avatar_url":"https://avatars.githubusercontent.com/u/1119644?v=3","gravatar_id":"","url":"https://api.github.com/users/bmchrist","html_url":"https://github.com/bmchrist","followers_url":"https://api.github.com/users/bmchrist/followers","following_url":"https://api.github.com/users/bmchrist/following{/other_user}","gists_url":"https://api.github.com/users/bmchrist/gists{/gist_id}","starred_url":"https://api.github.com/users/bmchrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmchrist/subscriptions","organizations_url":"https://api.github.com/users/bmchrist/orgs","repos_url":"https://api.github.com/users/bmchrist/repos","events_url":"https://api.github.com/users/bmchrist/events{/privacy}","received_events_url":"https://api.github.com/users/bmchrist/received_events","type":"User","site_admin":false},"repo":{"id":59858607,"name":"camping-gear","full_name":"bmchrist/camping-gear","owner":{"login":"bmchrist","id":1119644,"avatar_url":"https://avatars.githubusercontent.com/u/1119644?v=3","gravatar_id":"","url":"https://api.github.com/users/bmchrist","html_url":"https://github.com/bmchrist","followers_url":"https://api.github.com/users/bmchrist/followers","following_url":"https://api.github.com/users/bmchrist/following{/other_user}","gists_url":"https://api.github.com/users/bmchrist/gists{/gist_id}","starred_url":"https://api.github.com/users/bmchrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmchrist/subscriptions","organizations_url":"https://api.github.com/users/bmchrist/orgs","repos_url":"https://api.github.com/users/bmchrist/repos","events_url":"https://api.github.com/users/bmchrist/events{/privacy}","received_events_url":"https://api.github.com/users/bmchrist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmchrist/camping-gear","description":"For tracking/packing camping gear","fork":false,"url":"https://api.github.com/repos/bmchrist/camping-gear","forks_url":"https://api.github.com/repos/bmchrist/camping-gear/forks","keys_url":"https://api.github.com/repos/bmchrist/camping-gear/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmchrist/camping-gear/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmchrist/camping-gear/teams","hooks_url":"https://api.github.com/repos/bmchrist/camping-gear/hooks","issue_events_url":"https://api.github.com/repos/bmchrist/camping-gear/issues/events{/number}","events_url":"https://api.github.com/repos/bmchrist/camping-gear/events","assignees_url":"https://api.github.com/repos/bmchrist/camping-gear/assignees{/user}","branches_url":"https://api.github.com/repos/bmchrist/camping-gear/branches{/branch}","tags_url":"https://api.github.com/repos/bmchrist/camping-gear/tags","blobs_url":"https://api.github.com/repos/bmchrist/camping-gear/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmchrist/camping-gear/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmchrist/camping-gear/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmchrist/camping-gear/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmchrist/camping-gear/statuses/{sha}","languages_url":"https://api.github.com/repos/bmchrist/camping-gear/languages","stargazers_url":"https://api.github.com/repos/bmchrist/camping-gear/stargazers","contributors_url":"https://api.github.com/repos/bmchrist/camping-gear/contributors","subscribers_url":"https://api.github.com/repos/bmchrist/camping-gear/subscribers","subscription_url":"https://api.github.com/repos/bmchrist/camping-gear/subscription","commits_url":"https://api.github.com/repos/bmchrist/camping-gear/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmchrist/camping-gear/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmchrist/camping-gear/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmchrist/camping-gear/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmchrist/camping-gear/contents/{+path}","compare_url":"https://api.github.com/repos/bmchrist/camping-gear/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmchrist/camping-gear/merges","archive_url":"https://api.github.com/repos/bmchrist/camping-gear/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmchrist/camping-gear/downloads","issues_url":"https://api.github.com/repos/bmchrist/camping-gear/issues{/number}","pulls_url":"https://api.github.com/repos/bmchrist/camping-gear/pulls{/number}","milestones_url":"https://api.github.com/repos/bmchrist/camping-gear/milestones{/number}","notifications_url":"https://api.github.com/repos/bmchrist/camping-gear/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmchrist/camping-gear/labels{/name}","releases_url":"https://api.github.com/repos/bmchrist/camping-gear/releases{/id}","deployments_url":"https://api.github.com/repos/bmchrist/camping-gear/deployments","created_at":"2016-05-27T19:31:51Z","updated_at":"2016-05-27T20:08:22Z","pushed_at":"2016-05-27T21:17:59Z","git_url":"git://github.com/bmchrist/camping-gear.git","ssh_url":"git@github.com:bmchrist/camping-gear.git","clone_url":"https://github.com/bmchrist/camping-gear.git","svn_url":"https://github.com/bmchrist/camping-gear","homepage":null,"size":29,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10"},"html":{"href":"https://github.com/bmchrist/camping-gear/pull/10"},"issue":{"href":"https://api.github.com/repos/bmchrist/camping-gear/issues/10"},"comments":{"href":"https://api.github.com/repos/bmchrist/camping-gear/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/bmchrist/camping-gear/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bmchrist/camping-gear/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/bmchrist/camping-gear/statuses/96ab9ab8328e401d27ba481a1f10a1ae6f4813fd"}}}}
{"actor":{"display_login":"houndci-bot"}}