{"action":"created","comment":{"url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/comments/35840583","id":35840583,"diff_hunk":"@@ -0,0 +1,74 @@\n+class ItemsController < ApplicationController\n+  before_action :set_item, only: [:show, :edit, :update, :destroy]\n+\n+  # GET /items\n+  # GET /items.json\n+  def index\n+    @items = Item.all\n+  end\n+\n+  # GET /items/1\n+  # GET /items/1.json\n+  def show\n+  end\n+\n+  # GET /items/new\n+  def new\n+    @item = Item.new\n+  end\n+\n+  # GET /items/1/edit\n+  def edit\n+  end\n+\n+  # POST /items\n+  # POST /items.json\n+  def create\n+    @item = Item.new(item_params)\n+\n+    respond_to do |format|\n+      if @item.save\n+        format.html { redirect_to @item, notice: 'Item was successfully created.' }\n+        format.json { render action: 'show', status: :created, location: @item }\n+      else\n+        format.html { render action: 'new' }\n+        format.json { render json: @item.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # PATCH/PUT /items/1\n+  # PATCH/PUT /items/1.json\n+  def update\n+    respond_to do |format|\n+      if @item.update(item_params)\n+        format.html { redirect_to @item, notice: 'Item was successfully updated.' }","path":"app/controllers/items_controller.rb","position":45,"original_position":45,"commit_id":"d1cd6e0381268b7785b88af38dc2744ab1bd1d33","original_commit_id":"d1cd6e0381268b7785b88af38dc2744ab1bd1d33","user":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"body":"__[staging][reek]__\n* [DuplicateMethodCall] calls format.html 2 times","created_at":"2015-07-30T05:57:10Z","updated_at":"2015-07-30T05:57:10Z","html_url":"https://github.com/actcat/sideci_rails_sandbox/pull/5#discussion_r35840583","pull_request_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/comments/35840583"},"html":{"href":"https://github.com/actcat/sideci_rails_sandbox/pull/5#discussion_r35840583"},"pull_request":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5","id":41199733,"html_url":"https://github.com/actcat/sideci_rails_sandbox/pull/5","diff_url":"https://github.com/actcat/sideci_rails_sandbox/pull/5.diff","patch_url":"https://github.com/actcat/sideci_rails_sandbox/pull/5.patch","issue_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues/5","number":5,"state":"open","locked":false,"title":"Test/railsbp","user":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"body":"test on stg","created_at":"2015-07-30T05:41:30Z","updated_at":"2015-07-30T05:57:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f0d6e9483787cd40fe498e7b051e567061fe8cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5/commits","review_comments_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5/comments","review_comment_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues/5/comments","statuses_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/statuses/d1cd6e0381268b7785b88af38dc2744ab1bd1d33","head":{"label":"sumyapp:test/railsbp","ref":"test/railsbp","sha":"d1cd6e0381268b7785b88af38dc2744ab1bd1d33","user":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"repo":{"id":39534514,"name":"sideci_rails_sandbox","full_name":"sumyapp/sideci_rails_sandbox","owner":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sumyapp/sideci_rails_sandbox","description":"SideCI Sandbox repository for Ruby on Rails 4.x project","fork":true,"url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox","forks_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/forks","keys_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/teams","hooks_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/hooks","issue_events_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/events","assignees_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/tags","blobs_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/languages","stargazers_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/stargazers","contributors_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/contributors","subscribers_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/subscribers","subscription_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/subscription","commits_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/merges","archive_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/downloads","issues_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/sumyapp/sideci_rails_sandbox/releases{/id}","created_at":"2015-07-22T23:06:54Z","updated_at":"2015-07-10T04:20:28Z","pushed_at":"2015-07-28T07:39:56Z","git_url":"git://github.com/sumyapp/sideci_rails_sandbox.git","ssh_url":"git@github.com:sumyapp/sideci_rails_sandbox.git","clone_url":"https://github.com/sumyapp/sideci_rails_sandbox.git","svn_url":"https://github.com/sumyapp/sideci_rails_sandbox","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"actcat:master","ref":"master","sha":"9c5b153ef28acc078c16d38025bcf91e3d53c802","user":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"repo":{"id":38860676,"name":"sideci_rails_sandbox","full_name":"actcat/sideci_rails_sandbox","owner":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/actcat/sideci_rails_sandbox","description":"SideCI Sandbox repository for Ruby on Rails 4.x project","fork":false,"url":"https://api.github.com/repos/actcat/sideci_rails_sandbox","forks_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/forks","keys_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/teams","hooks_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/hooks","issue_events_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/events","assignees_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/tags","blobs_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/languages","stargazers_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/stargazers","contributors_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/contributors","subscribers_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/subscribers","subscription_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/subscription","commits_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/merges","archive_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/downloads","issues_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/actcat/sideci_rails_sandbox/releases{/id}","created_at":"2015-07-10T04:20:28Z","updated_at":"2015-07-10T04:20:28Z","pushed_at":"2015-07-30T05:41:30Z","git_url":"git://github.com/actcat/sideci_rails_sandbox.git","ssh_url":"git@github.com:actcat/sideci_rails_sandbox.git","clone_url":"https://github.com/actcat/sideci_rails_sandbox.git","svn_url":"https://github.com/actcat/sideci_rails_sandbox","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5"},"html":{"href":"https://github.com/actcat/sideci_rails_sandbox/pull/5"},"issue":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues/5"},"comments":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/actcat/sideci_rails_sandbox/statuses/d1cd6e0381268b7785b88af38dc2744ab1bd1d33"}}}}