{"action":"created","comment":{"url":"https://api.github.com/repos/annict/annict/pulls/comments/38262779","id":38262779,"diff_hunk":"@@ -0,0 +1,37 @@\n+class EditRequestDecorator < ApplicationDecorator\n+  def status_label\n+    if opened?\n+      h.content_tag :span, \"オープン\", class: \"label label-success\"\n+    elsif published?\n+      h.content_tag :span, \"公開済み\", class: \"label label-info\"\n+    elsif closed?\n+      h.content_tag :span, \"クローズ\", class: \"label label-danger\"\n+    end\n+  end\n+\n+  def resource_diff_table\n+    data = {\n+      draft_resource: draft_resource,\n+      diffs: draft_resource.diffs,\n+      draft_values: draft_resource.draft_values,\n+      origin_values: draft_resource.origin_values\n+    }\n+\n+    h.render(\"db/application/resource_diff_table\", data)\n+  end\n+\n+  def edit_draft_resource_path","path":"app/decorators/edit_request_decorator.rb","position":23,"original_position":23,"commit_id":"6dd15ee722292b015200ccca29c1c62c6b1f49e4","original_commit_id":"6dd15ee722292b015200ccca29c1c62c6b1f49e4","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Assignment Branch Condition size for edit_draft_resource_path is too high. [24.52/15]","created_at":"2015-08-29T14:53:05Z","updated_at":"2015-08-29T14:53:05Z","html_url":"https://github.com/annict/annict/pull/222#discussion_r38262779","pull_request_url":"https://api.github.com/repos/annict/annict/pulls/222","_links":{"self":{"href":"https://api.github.com/repos/annict/annict/pulls/comments/38262779"},"html":{"href":"https://github.com/annict/annict/pull/222#discussion_r38262779"},"pull_request":{"href":"https://api.github.com/repos/annict/annict/pulls/222"}}},"pull_request":{"url":"https://api.github.com/repos/annict/annict/pulls/222","id":41953922,"html_url":"https://github.com/annict/annict/pull/222","diff_url":"https://github.com/annict/annict/pull/222.diff","patch_url":"https://github.com/annict/annict/pull/222.patch","issue_url":"https://api.github.com/repos/annict/annict/issues/222","number":222,"state":"open","locked":false,"title":"Annict DB","user":{"login":"shimbaco","id":56767,"avatar_url":"https://avatars.githubusercontent.com/u/56767?v=3","gravatar_id":"","url":"https://api.github.com/users/shimbaco","html_url":"https://github.com/shimbaco","followers_url":"https://api.github.com/users/shimbaco/followers","following_url":"https://api.github.com/users/shimbaco/following{/other_user}","gists_url":"https://api.github.com/users/shimbaco/gists{/gist_id}","starred_url":"https://api.github.com/users/shimbaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimbaco/subscriptions","organizations_url":"https://api.github.com/users/shimbaco/orgs","repos_url":"https://api.github.com/users/shimbaco/repos","events_url":"https://api.github.com/users/shimbaco/events{/privacy}","received_events_url":"https://api.github.com/users/shimbaco/received_events","type":"User","site_admin":false},"body":"ref: #184\r\n","created_at":"2015-08-08T13:10:23Z","updated_at":"2015-08-29T14:53:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6966b3a7215fc761c053e51722944f34c2717fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/annict/annict/pulls/222/commits","review_comments_url":"https://api.github.com/repos/annict/annict/pulls/222/comments","review_comment_url":"https://api.github.com/repos/annict/annict/pulls/comments{/number}","comments_url":"https://api.github.com/repos/annict/annict/issues/222/comments","statuses_url":"https://api.github.com/repos/annict/annict/statuses/6dd15ee722292b015200ccca29c1c62c6b1f49e4","head":{"label":"annict:184-annict-db","ref":"184-annict-db","sha":"6dd15ee722292b015200ccca29c1c62c6b1f49e4","user":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"repo":{"id":21744872,"name":"annict","full_name":"annict/annict","owner":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/annict/annict","description":"Rails 4.2とAngular.js 1.3で開発中のアニメ視聴記録サービス「Annict」です。","fork":false,"url":"https://api.github.com/repos/annict/annict","forks_url":"https://api.github.com/repos/annict/annict/forks","keys_url":"https://api.github.com/repos/annict/annict/keys{/key_id}","collaborators_url":"https://api.github.com/repos/annict/annict/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/annict/annict/teams","hooks_url":"https://api.github.com/repos/annict/annict/hooks","issue_events_url":"https://api.github.com/repos/annict/annict/issues/events{/number}","events_url":"https://api.github.com/repos/annict/annict/events","assignees_url":"https://api.github.com/repos/annict/annict/assignees{/user}","branches_url":"https://api.github.com/repos/annict/annict/branches{/branch}","tags_url":"https://api.github.com/repos/annict/annict/tags","blobs_url":"https://api.github.com/repos/annict/annict/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/annict/annict/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/annict/annict/git/refs{/sha}","trees_url":"https://api.github.com/repos/annict/annict/git/trees{/sha}","statuses_url":"https://api.github.com/repos/annict/annict/statuses/{sha}","languages_url":"https://api.github.com/repos/annict/annict/languages","stargazers_url":"https://api.github.com/repos/annict/annict/stargazers","contributors_url":"https://api.github.com/repos/annict/annict/contributors","subscribers_url":"https://api.github.com/repos/annict/annict/subscribers","subscription_url":"https://api.github.com/repos/annict/annict/subscription","commits_url":"https://api.github.com/repos/annict/annict/commits{/sha}","git_commits_url":"https://api.github.com/repos/annict/annict/git/commits{/sha}","comments_url":"https://api.github.com/repos/annict/annict/comments{/number}","issue_comment_url":"https://api.github.com/repos/annict/annict/issues/comments{/number}","contents_url":"https://api.github.com/repos/annict/annict/contents/{+path}","compare_url":"https://api.github.com/repos/annict/annict/compare/{base}...{head}","merges_url":"https://api.github.com/repos/annict/annict/merges","archive_url":"https://api.github.com/repos/annict/annict/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/annict/annict/downloads","issues_url":"https://api.github.com/repos/annict/annict/issues{/number}","pulls_url":"https://api.github.com/repos/annict/annict/pulls{/number}","milestones_url":"https://api.github.com/repos/annict/annict/milestones{/number}","notifications_url":"https://api.github.com/repos/annict/annict/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/annict/annict/labels{/name}","releases_url":"https://api.github.com/repos/annict/annict/releases{/id}","created_at":"2014-07-11T17:18:18Z","updated_at":"2015-08-13T19:06:26Z","pushed_at":"2015-08-29T14:52:43Z","git_url":"git://github.com/annict/annict.git","ssh_url":"git@github.com:annict/annict.git","clone_url":"https://github.com/annict/annict.git","svn_url":"https://github.com/annict/annict","homepage":"http://www.annict.com","size":37219,"stargazers_count":47,"watchers_count":47,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":47,"forks":9,"open_issues":47,"watchers":47,"default_branch":"master"}},"base":{"label":"annict:master","ref":"master","sha":"548ddacab9392fa2000bb0ed776414ec7ff86f32","user":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"repo":{"id":21744872,"name":"annict","full_name":"annict/annict","owner":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/annict/annict","description":"Rails 4.2とAngular.js 1.3で開発中のアニメ視聴記録サービス「Annict」です。","fork":false,"url":"https://api.github.com/repos/annict/annict","forks_url":"https://api.github.com/repos/annict/annict/forks","keys_url":"https://api.github.com/repos/annict/annict/keys{/key_id}","collaborators_url":"https://api.github.com/repos/annict/annict/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/annict/annict/teams","hooks_url":"https://api.github.com/repos/annict/annict/hooks","issue_events_url":"https://api.github.com/repos/annict/annict/issues/events{/number}","events_url":"https://api.github.com/repos/annict/annict/events","assignees_url":"https://api.github.com/repos/annict/annict/assignees{/user}","branches_url":"https://api.github.com/repos/annict/annict/branches{/branch}","tags_url":"https://api.github.com/repos/annict/annict/tags","blobs_url":"https://api.github.com/repos/annict/annict/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/annict/annict/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/annict/annict/git/refs{/sha}","trees_url":"https://api.github.com/repos/annict/annict/git/trees{/sha}","statuses_url":"https://api.github.com/repos/annict/annict/statuses/{sha}","languages_url":"https://api.github.com/repos/annict/annict/languages","stargazers_url":"https://api.github.com/repos/annict/annict/stargazers","contributors_url":"https://api.github.com/repos/annict/annict/contributors","subscribers_url":"https://api.github.com/repos/annict/annict/subscribers","subscription_url":"https://api.github.com/repos/annict/annict/subscription","commits_url":"https://api.github.com/repos/annict/annict/commits{/sha}","git_commits_url":"https://api.github.com/repos/annict/annict/git/commits{/sha}","comments_url":"https://api.github.com/repos/annict/annict/comments{/number}","issue_comment_url":"https://api.github.com/repos/annict/annict/issues/comments{/number}","contents_url":"https://api.github.com/repos/annict/annict/contents/{+path}","compare_url":"https://api.github.com/repos/annict/annict/compare/{base}...{head}","merges_url":"https://api.github.com/repos/annict/annict/merges","archive_url":"https://api.github.com/repos/annict/annict/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/annict/annict/downloads","issues_url":"https://api.github.com/repos/annict/annict/issues{/number}","pulls_url":"https://api.github.com/repos/annict/annict/pulls{/number}","milestones_url":"https://api.github.com/repos/annict/annict/milestones{/number}","notifications_url":"https://api.github.com/repos/annict/annict/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/annict/annict/labels{/name}","releases_url":"https://api.github.com/repos/annict/annict/releases{/id}","created_at":"2014-07-11T17:18:18Z","updated_at":"2015-08-13T19:06:26Z","pushed_at":"2015-08-29T14:52:43Z","git_url":"git://github.com/annict/annict.git","ssh_url":"git@github.com:annict/annict.git","clone_url":"https://github.com/annict/annict.git","svn_url":"https://github.com/annict/annict","homepage":"http://www.annict.com","size":37219,"stargazers_count":47,"watchers_count":47,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":47,"forks":9,"open_issues":47,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/annict/annict/pulls/222"},"html":{"href":"https://github.com/annict/annict/pull/222"},"issue":{"href":"https://api.github.com/repos/annict/annict/issues/222"},"comments":{"href":"https://api.github.com/repos/annict/annict/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/annict/annict/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/annict/annict/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/annict/annict/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/annict/annict/statuses/6dd15ee722292b015200ccca29c1c62c6b1f49e4"}}}}