{"action":"created","comment":{"url":"https://api.github.com/repos/ll100-cn/testpoint/pulls/comments/232436201","pull_request_review_id":173643990,"id":232436201,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjQzNjIwMQ==","diff_hunk":"@@ -1,11 +1,13 @@\n class Projects::SubscriptionsController < ApplicationController\n-  load_and_authorize_resource :project\n-  load_and_authorize_resource :issue, through: :project\n-  load_resource :subscription\n+  load_resource :project\n+  load_resource :issue, through: :project\n+  load_resource through: :current_user, find_by: :issue_id, id_param: :issue_id\n   before_action -> { @user = current_user }\n \n+\n   def create\n-    @subscription = Subscription.new(user_id: @user.id, issue_id: @issue.id)\n+    @subscription.user = @user\n+    @subscription.issue = @issue","path":"app/controllers/projects/subscriptions_controller.rb","position":14,"original_position":14,"commit_id":"de5903f6c1aaf852a4afe1b4e5f53344921ddab4","original_commit_id":"de5903f6c1aaf852a4afe1b4e5f53344921ddab4","user":{"login":"sunteya","id":139466,"node_id":"MDQ6VXNlcjEzOTQ2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/139466?v=4","gravatar_id":"","url":"https://api.github.com/users/sunteya","html_url":"https://github.com/sunteya","followers_url":"https://api.github.com/users/sunteya/followers","following_url":"https://api.github.com/users/sunteya/following{/other_user}","gists_url":"https://api.github.com/users/sunteya/gists{/gist_id}","starred_url":"https://api.github.com/users/sunteya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunteya/subscriptions","organizations_url":"https://api.github.com/users/sunteya/orgs","repos_url":"https://api.github.com/users/sunteya/repos","events_url":"https://api.github.com/users/sunteya/events{/privacy}","received_events_url":"https://api.github.com/users/sunteya/received_events","type":"User","site_admin":false},"body":"删了","created_at":"2018-11-10T01:40:40Z","updated_at":"2018-11-10T01:40:40Z","html_url":"https://github.com/ll100-cn/testpoint/pull/71#discussion_r232436201","pull_request_url":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ll100-cn/testpoint/pulls/comments/232436201"},"html":{"href":"https://github.com/ll100-cn/testpoint/pull/71#discussion_r232436201"},"pull_request":{"href":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71","id":229598992,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NTk4OTky","html_url":"https://github.com/ll100-cn/testpoint/pull/71","diff_url":"https://github.com/ll100-cn/testpoint/pull/71.diff","patch_url":"https://github.com/ll100-cn/testpoint/pull/71.patch","issue_url":"https://api.github.com/repos/ll100-cn/testpoint/issues/71","number":71,"state":"open","locked":false,"title":"重分配 ability","user":{"login":"Lupeipei","id":18224696,"node_id":"MDQ6VXNlcjE4MjI0Njk2","avatar_url":"https://avatars1.githubusercontent.com/u/18224696?v=4","gravatar_id":"","url":"https://api.github.com/users/Lupeipei","html_url":"https://github.com/Lupeipei","followers_url":"https://api.github.com/users/Lupeipei/followers","following_url":"https://api.github.com/users/Lupeipei/following{/other_user}","gists_url":"https://api.github.com/users/Lupeipei/gists{/gist_id}","starred_url":"https://api.github.com/users/Lupeipei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lupeipei/subscriptions","organizations_url":"https://api.github.com/users/Lupeipei/orgs","repos_url":"https://api.github.com/users/Lupeipei/repos","events_url":"https://api.github.com/users/Lupeipei/events{/privacy}","received_events_url":"https://api.github.com/users/Lupeipei/received_events","type":"User","site_admin":false},"body":"- 重定义role\r\n- 重分配 ability","created_at":"2018-11-09T06:20:09Z","updated_at":"2018-11-10T01:40:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92ccdd908e782cf10dac7c524d2b22c984dbd9a5","assignee":{"login":"Lupeipei","id":18224696,"node_id":"MDQ6VXNlcjE4MjI0Njk2","avatar_url":"https://avatars1.githubusercontent.com/u/18224696?v=4","gravatar_id":"","url":"https://api.github.com/users/Lupeipei","html_url":"https://github.com/Lupeipei","followers_url":"https://api.github.com/users/Lupeipei/followers","following_url":"https://api.github.com/users/Lupeipei/following{/other_user}","gists_url":"https://api.github.com/users/Lupeipei/gists{/gist_id}","starred_url":"https://api.github.com/users/Lupeipei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lupeipei/subscriptions","organizations_url":"https://api.github.com/users/Lupeipei/orgs","repos_url":"https://api.github.com/users/Lupeipei/repos","events_url":"https://api.github.com/users/Lupeipei/events{/privacy}","received_events_url":"https://api.github.com/users/Lupeipei/received_events","type":"User","site_admin":false},"assignees":[{"login":"Lupeipei","id":18224696,"node_id":"MDQ6VXNlcjE4MjI0Njk2","avatar_url":"https://avatars1.githubusercontent.com/u/18224696?v=4","gravatar_id":"","url":"https://api.github.com/users/Lupeipei","html_url":"https://github.com/Lupeipei","followers_url":"https://api.github.com/users/Lupeipei/followers","following_url":"https://api.github.com/users/Lupeipei/following{/other_user}","gists_url":"https://api.github.com/users/Lupeipei/gists{/gist_id}","starred_url":"https://api.github.com/users/Lupeipei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lupeipei/subscriptions","organizations_url":"https://api.github.com/users/Lupeipei/orgs","repos_url":"https://api.github.com/users/Lupeipei/repos","events_url":"https://api.github.com/users/Lupeipei/events{/privacy}","received_events_url":"https://api.github.com/users/Lupeipei/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71/commits","review_comments_url":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71/comments","review_comment_url":"https://api.github.com/repos/ll100-cn/testpoint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ll100-cn/testpoint/issues/71/comments","statuses_url":"https://api.github.com/repos/ll100-cn/testpoint/statuses/de5903f6c1aaf852a4afe1b4e5f53344921ddab4","head":{"label":"ll100-cn:redefine_ability","ref":"redefine_ability","sha":"de5903f6c1aaf852a4afe1b4e5f53344921ddab4","user":{"login":"ll100-cn","id":11205304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjA1MzA0","avatar_url":"https://avatars3.githubusercontent.com/u/11205304?v=4","gravatar_id":"","url":"https://api.github.com/users/ll100-cn","html_url":"https://github.com/ll100-cn","followers_url":"https://api.github.com/users/ll100-cn/followers","following_url":"https://api.github.com/users/ll100-cn/following{/other_user}","gists_url":"https://api.github.com/users/ll100-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/ll100-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ll100-cn/subscriptions","organizations_url":"https://api.github.com/users/ll100-cn/orgs","repos_url":"https://api.github.com/users/ll100-cn/repos","events_url":"https://api.github.com/users/ll100-cn/events{/privacy}","received_events_url":"https://api.github.com/users/ll100-cn/received_events","type":"Organization","site_admin":false},"repo":{"id":96511504,"node_id":"MDEwOlJlcG9zaXRvcnk5NjUxMTUwNA==","name":"testpoint","full_name":"ll100-cn/testpoint","private":false,"owner":{"login":"ll100-cn","id":11205304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjA1MzA0","avatar_url":"https://avatars3.githubusercontent.com/u/11205304?v=4","gravatar_id":"","url":"https://api.github.com/users/ll100-cn","html_url":"https://github.com/ll100-cn","followers_url":"https://api.github.com/users/ll100-cn/followers","following_url":"https://api.github.com/users/ll100-cn/following{/other_user}","gists_url":"https://api.github.com/users/ll100-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/ll100-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ll100-cn/subscriptions","organizations_url":"https://api.github.com/users/ll100-cn/orgs","repos_url":"https://api.github.com/users/ll100-cn/repos","events_url":"https://api.github.com/users/ll100-cn/events{/privacy}","received_events_url":"https://api.github.com/users/ll100-cn/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ll100-cn/testpoint","description":null,"fork":false,"url":"https://api.github.com/repos/ll100-cn/testpoint","forks_url":"https://api.github.com/repos/ll100-cn/testpoint/forks","keys_url":"https://api.github.com/repos/ll100-cn/testpoint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ll100-cn/testpoint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ll100-cn/testpoint/teams","hooks_url":"https://api.github.com/repos/ll100-cn/testpoint/hooks","issue_events_url":"https://api.github.com/repos/ll100-cn/testpoint/issues/events{/number}","events_url":"https://api.github.com/repos/ll100-cn/testpoint/events","assignees_url":"https://api.github.com/repos/ll100-cn/testpoint/assignees{/user}","branches_url":"https://api.github.com/repos/ll100-cn/testpoint/branches{/branch}","tags_url":"https://api.github.com/repos/ll100-cn/testpoint/tags","blobs_url":"https://api.github.com/repos/ll100-cn/testpoint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ll100-cn/testpoint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ll100-cn/testpoint/git/refs{/sha}","trees_url":"https://api.github.com/repos/ll100-cn/testpoint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ll100-cn/testpoint/statuses/{sha}","languages_url":"https://api.github.com/repos/ll100-cn/testpoint/languages","stargazers_url":"https://api.github.com/repos/ll100-cn/testpoint/stargazers","contributors_url":"https://api.github.com/repos/ll100-cn/testpoint/contributors","subscribers_url":"https://api.github.com/repos/ll100-cn/testpoint/subscribers","subscription_url":"https://api.github.com/repos/ll100-cn/testpoint/subscription","commits_url":"https://api.github.com/repos/ll100-cn/testpoint/commits{/sha}","git_commits_url":"https://api.github.com/repos/ll100-cn/testpoint/git/commits{/sha}","comments_url":"https://api.github.com/repos/ll100-cn/testpoint/comments{/number}","issue_comment_url":"https://api.github.com/repos/ll100-cn/testpoint/issues/comments{/number}","contents_url":"https://api.github.com/repos/ll100-cn/testpoint/contents/{+path}","compare_url":"https://api.github.com/repos/ll100-cn/testpoint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ll100-cn/testpoint/merges","archive_url":"https://api.github.com/repos/ll100-cn/testpoint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ll100-cn/testpoint/downloads","issues_url":"https://api.github.com/repos/ll100-cn/testpoint/issues{/number}","pulls_url":"https://api.github.com/repos/ll100-cn/testpoint/pulls{/number}","milestones_url":"https://api.github.com/repos/ll100-cn/testpoint/milestones{/number}","notifications_url":"https://api.github.com/repos/ll100-cn/testpoint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ll100-cn/testpoint/labels{/name}","releases_url":"https://api.github.com/repos/ll100-cn/testpoint/releases{/id}","deployments_url":"https://api.github.com/repos/ll100-cn/testpoint/deployments","created_at":"2017-07-07T07:25:03Z","updated_at":"2018-11-08T15:23:33Z","pushed_at":"2018-11-09T11:04:05Z","git_url":"git://github.com/ll100-cn/testpoint.git","ssh_url":"git@github.com:ll100-cn/testpoint.git","clone_url":"https://github.com/ll100-cn/testpoint.git","svn_url":"https://github.com/ll100-cn/testpoint","homepage":null,"size":967,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ll100-cn:master","ref":"master","sha":"81aa6ff7cf615875a0acc96a20ed374a11152257","user":{"login":"ll100-cn","id":11205304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjA1MzA0","avatar_url":"https://avatars3.githubusercontent.com/u/11205304?v=4","gravatar_id":"","url":"https://api.github.com/users/ll100-cn","html_url":"https://github.com/ll100-cn","followers_url":"https://api.github.com/users/ll100-cn/followers","following_url":"https://api.github.com/users/ll100-cn/following{/other_user}","gists_url":"https://api.github.com/users/ll100-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/ll100-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ll100-cn/subscriptions","organizations_url":"https://api.github.com/users/ll100-cn/orgs","repos_url":"https://api.github.com/users/ll100-cn/repos","events_url":"https://api.github.com/users/ll100-cn/events{/privacy}","received_events_url":"https://api.github.com/users/ll100-cn/received_events","type":"Organization","site_admin":false},"repo":{"id":96511504,"node_id":"MDEwOlJlcG9zaXRvcnk5NjUxMTUwNA==","name":"testpoint","full_name":"ll100-cn/testpoint","private":false,"owner":{"login":"ll100-cn","id":11205304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjA1MzA0","avatar_url":"https://avatars3.githubusercontent.com/u/11205304?v=4","gravatar_id":"","url":"https://api.github.com/users/ll100-cn","html_url":"https://github.com/ll100-cn","followers_url":"https://api.github.com/users/ll100-cn/followers","following_url":"https://api.github.com/users/ll100-cn/following{/other_user}","gists_url":"https://api.github.com/users/ll100-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/ll100-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ll100-cn/subscriptions","organizations_url":"https://api.github.com/users/ll100-cn/orgs","repos_url":"https://api.github.com/users/ll100-cn/repos","events_url":"https://api.github.com/users/ll100-cn/events{/privacy}","received_events_url":"https://api.github.com/users/ll100-cn/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ll100-cn/testpoint","description":null,"fork":false,"url":"https://api.github.com/repos/ll100-cn/testpoint","forks_url":"https://api.github.com/repos/ll100-cn/testpoint/forks","keys_url":"https://api.github.com/repos/ll100-cn/testpoint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ll100-cn/testpoint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ll100-cn/testpoint/teams","hooks_url":"https://api.github.com/repos/ll100-cn/testpoint/hooks","issue_events_url":"https://api.github.com/repos/ll100-cn/testpoint/issues/events{/number}","events_url":"https://api.github.com/repos/ll100-cn/testpoint/events","assignees_url":"https://api.github.com/repos/ll100-cn/testpoint/assignees{/user}","branches_url":"https://api.github.com/repos/ll100-cn/testpoint/branches{/branch}","tags_url":"https://api.github.com/repos/ll100-cn/testpoint/tags","blobs_url":"https://api.github.com/repos/ll100-cn/testpoint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ll100-cn/testpoint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ll100-cn/testpoint/git/refs{/sha}","trees_url":"https://api.github.com/repos/ll100-cn/testpoint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ll100-cn/testpoint/statuses/{sha}","languages_url":"https://api.github.com/repos/ll100-cn/testpoint/languages","stargazers_url":"https://api.github.com/repos/ll100-cn/testpoint/stargazers","contributors_url":"https://api.github.com/repos/ll100-cn/testpoint/contributors","subscribers_url":"https://api.github.com/repos/ll100-cn/testpoint/subscribers","subscription_url":"https://api.github.com/repos/ll100-cn/testpoint/subscription","commits_url":"https://api.github.com/repos/ll100-cn/testpoint/commits{/sha}","git_commits_url":"https://api.github.com/repos/ll100-cn/testpoint/git/commits{/sha}","comments_url":"https://api.github.com/repos/ll100-cn/testpoint/comments{/number}","issue_comment_url":"https://api.github.com/repos/ll100-cn/testpoint/issues/comments{/number}","contents_url":"https://api.github.com/repos/ll100-cn/testpoint/contents/{+path}","compare_url":"https://api.github.com/repos/ll100-cn/testpoint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ll100-cn/testpoint/merges","archive_url":"https://api.github.com/repos/ll100-cn/testpoint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ll100-cn/testpoint/downloads","issues_url":"https://api.github.com/repos/ll100-cn/testpoint/issues{/number}","pulls_url":"https://api.github.com/repos/ll100-cn/testpoint/pulls{/number}","milestones_url":"https://api.github.com/repos/ll100-cn/testpoint/milestones{/number}","notifications_url":"https://api.github.com/repos/ll100-cn/testpoint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ll100-cn/testpoint/labels{/name}","releases_url":"https://api.github.com/repos/ll100-cn/testpoint/releases{/id}","deployments_url":"https://api.github.com/repos/ll100-cn/testpoint/deployments","created_at":"2017-07-07T07:25:03Z","updated_at":"2018-11-08T15:23:33Z","pushed_at":"2018-11-09T11:04:05Z","git_url":"git://github.com/ll100-cn/testpoint.git","ssh_url":"git@github.com:ll100-cn/testpoint.git","clone_url":"https://github.com/ll100-cn/testpoint.git","svn_url":"https://github.com/ll100-cn/testpoint","homepage":null,"size":967,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71"},"html":{"href":"https://github.com/ll100-cn/testpoint/pull/71"},"issue":{"href":"https://api.github.com/repos/ll100-cn/testpoint/issues/71"},"comments":{"href":"https://api.github.com/repos/ll100-cn/testpoint/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/ll100-cn/testpoint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ll100-cn/testpoint/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/ll100-cn/testpoint/statuses/de5903f6c1aaf852a4afe1b4e5f53344921ddab4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sunteya"}}