{"action":"created","comment":{"url":"https://api.github.com/repos/publiclab/plots2/pulls/comments/209451226","pull_request_review_id":145470673,"id":209451226,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTQ1MTIyNg==","diff_hunk":"@@ -19,6 +19,15 @@ Do NOT reply to this email; click this link to respond:\n \n <hr />\n \n+<p>Look like spam?\n+  <% if @user.user.can_moderate? %>","path":"app/views/comment_mailer/notify_note_author.html.erb","position":5,"original_position":5,"commit_id":"96f4522d9cb79a71a85515c6746894ff4c1c7b03","original_commit_id":"96f4522d9cb79a71a85515c6746894ff4c1c7b03","user":{"login":"gauravano","id":20878070,"node_id":"MDQ6VXNlcjIwODc4MDcw","avatar_url":"https://avatars3.githubusercontent.com/u/20878070?v=4","gravatar_id":"","url":"https://api.github.com/users/gauravano","html_url":"https://github.com/gauravano","followers_url":"https://api.github.com/users/gauravano/followers","following_url":"https://api.github.com/users/gauravano/following{/other_user}","gists_url":"https://api.github.com/users/gauravano/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravano/subscriptions","organizations_url":"https://api.github.com/users/gauravano/orgs","repos_url":"https://api.github.com/users/gauravano/repos","events_url":"https://api.github.com/users/gauravano/events{/privacy}","received_events_url":"https://api.github.com/users/gauravano/received_events","type":"User","site_admin":false},"body":"Ah.. @qm3 can you please replace this line with - `<% if @user.role == \"admin\" || @user.role == \"moderator\" %>` ? Sorry this one took some time. Thanks!\r\n\r\n","created_at":"2018-08-12T11:04:31Z","updated_at":"2018-08-12T11:04:31Z","html_url":"https://github.com/publiclab/plots2/pull/3207#discussion_r209451226","pull_request_url":"https://api.github.com/repos/publiclab/plots2/pulls/3207","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/comments/209451226"},"html":{"href":"https://github.com/publiclab/plots2/pull/3207#discussion_r209451226"},"pull_request":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/3207"}}},"pull_request":{"url":"https://api.github.com/repos/publiclab/plots2/pulls/3207","id":206290669,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjkwNjY5","html_url":"https://github.com/publiclab/plots2/pull/3207","diff_url":"https://github.com/publiclab/plots2/pull/3207.diff","patch_url":"https://github.com/publiclab/plots2/pull/3207.patch","issue_url":"https://api.github.com/repos/publiclab/plots2/issues/3207","number":3207,"state":"open","locked":false,"title":"Adds user options to spam-like comments or messages.","user":{"login":"qm3","id":31715438,"node_id":"MDQ6VXNlcjMxNzE1NDM4","avatar_url":"https://avatars2.githubusercontent.com/u/31715438?v=4","gravatar_id":"","url":"https://api.github.com/users/qm3","html_url":"https://github.com/qm3","followers_url":"https://api.github.com/users/qm3/followers","following_url":"https://api.github.com/users/qm3/following{/other_user}","gists_url":"https://api.github.com/users/qm3/gists{/gist_id}","starred_url":"https://api.github.com/users/qm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm3/subscriptions","organizations_url":"https://api.github.com/users/qm3/orgs","repos_url":"https://api.github.com/users/qm3/repos","events_url":"https://api.github.com/users/qm3/events{/privacy}","received_events_url":"https://api.github.com/users/qm3/received_events","type":"User","site_admin":false},"body":"Fixes #3205 \"Comment moderation link addition in notify_author_mailer\".\r\n\r\nMake sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!\r\n\r\n* [ ] tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with `rake test`\r\n* [ ] code is in uniquely-named feature branch and has no merge conflicts\r\n* [ ] PR is descriptively titled\r\n* [ ] PR body includes `fixes #0000`-style reference to original issue #\r\n* [ ] ask `@publiclab/reviewers` for help, in a comment below\r\n\r\n> We're happy to help you get this ready -- don't be afraid to ask for help, and **don't be discouraged** if your tests fail at first!\r\n\r\nIf tests do fail, click on the red `X` to learn why by reading the logs.\r\n\r\nPlease be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software\r\n\r\nWe have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. \r\n\r\nThanks!\r\n","created_at":"2018-08-06T05:13:03Z","updated_at":"2018-08-12T11:04:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6aa28a091c9798837a8e0a379f47c10d5b86bde4","assignee":{"login":"qm3","id":31715438,"node_id":"MDQ6VXNlcjMxNzE1NDM4","avatar_url":"https://avatars2.githubusercontent.com/u/31715438?v=4","gravatar_id":"","url":"https://api.github.com/users/qm3","html_url":"https://github.com/qm3","followers_url":"https://api.github.com/users/qm3/followers","following_url":"https://api.github.com/users/qm3/following{/other_user}","gists_url":"https://api.github.com/users/qm3/gists{/gist_id}","starred_url":"https://api.github.com/users/qm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm3/subscriptions","organizations_url":"https://api.github.com/users/qm3/orgs","repos_url":"https://api.github.com/users/qm3/repos","events_url":"https://api.github.com/users/qm3/events{/privacy}","received_events_url":"https://api.github.com/users/qm3/received_events","type":"User","site_admin":false},"assignees":[{"login":"qm3","id":31715438,"node_id":"MDQ6VXNlcjMxNzE1NDM4","avatar_url":"https://avatars2.githubusercontent.com/u/31715438?v=4","gravatar_id":"","url":"https://api.github.com/users/qm3","html_url":"https://github.com/qm3","followers_url":"https://api.github.com/users/qm3/followers","following_url":"https://api.github.com/users/qm3/following{/other_user}","gists_url":"https://api.github.com/users/qm3/gists{/gist_id}","starred_url":"https://api.github.com/users/qm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm3/subscriptions","organizations_url":"https://api.github.com/users/qm3/orgs","repos_url":"https://api.github.com/users/qm3/repos","events_url":"https://api.github.com/users/qm3/events{/privacy}","received_events_url":"https://api.github.com/users/qm3/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/publiclab/plots2/pulls/3207/commits","review_comments_url":"https://api.github.com/repos/publiclab/plots2/pulls/3207/comments","review_comment_url":"https://api.github.com/repos/publiclab/plots2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/publiclab/plots2/issues/3207/comments","statuses_url":"https://api.github.com/repos/publiclab/plots2/statuses/96f4522d9cb79a71a85515c6746894ff4c1c7b03","head":{"label":"qm3:master","ref":"master","sha":"96f4522d9cb79a71a85515c6746894ff4c1c7b03","user":{"login":"qm3","id":31715438,"node_id":"MDQ6VXNlcjMxNzE1NDM4","avatar_url":"https://avatars2.githubusercontent.com/u/31715438?v=4","gravatar_id":"","url":"https://api.github.com/users/qm3","html_url":"https://github.com/qm3","followers_url":"https://api.github.com/users/qm3/followers","following_url":"https://api.github.com/users/qm3/following{/other_user}","gists_url":"https://api.github.com/users/qm3/gists{/gist_id}","starred_url":"https://api.github.com/users/qm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm3/subscriptions","organizations_url":"https://api.github.com/users/qm3/orgs","repos_url":"https://api.github.com/users/qm3/repos","events_url":"https://api.github.com/users/qm3/events{/privacy}","received_events_url":"https://api.github.com/users/qm3/received_events","type":"User","site_admin":false},"repo":{"id":143677636,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM2Nzc2MzY=","name":"plots2","full_name":"qm3/plots2","owner":{"login":"qm3","id":31715438,"node_id":"MDQ6VXNlcjMxNzE1NDM4","avatar_url":"https://avatars2.githubusercontent.com/u/31715438?v=4","gravatar_id":"","url":"https://api.github.com/users/qm3","html_url":"https://github.com/qm3","followers_url":"https://api.github.com/users/qm3/followers","following_url":"https://api.github.com/users/qm3/following{/other_user}","gists_url":"https://api.github.com/users/qm3/gists{/gist_id}","starred_url":"https://api.github.com/users/qm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm3/subscriptions","organizations_url":"https://api.github.com/users/qm3/orgs","repos_url":"https://api.github.com/users/qm3/repos","events_url":"https://api.github.com/users/qm3/events{/privacy}","received_events_url":"https://api.github.com/users/qm3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qm3/plots2","description":"PublicLab.org - a collaborative knowledge-exchange platform in Rails; we welcome first-time contributors! :balloon:","fork":true,"url":"https://api.github.com/repos/qm3/plots2","forks_url":"https://api.github.com/repos/qm3/plots2/forks","keys_url":"https://api.github.com/repos/qm3/plots2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qm3/plots2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qm3/plots2/teams","hooks_url":"https://api.github.com/repos/qm3/plots2/hooks","issue_events_url":"https://api.github.com/repos/qm3/plots2/issues/events{/number}","events_url":"https://api.github.com/repos/qm3/plots2/events","assignees_url":"https://api.github.com/repos/qm3/plots2/assignees{/user}","branches_url":"https://api.github.com/repos/qm3/plots2/branches{/branch}","tags_url":"https://api.github.com/repos/qm3/plots2/tags","blobs_url":"https://api.github.com/repos/qm3/plots2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qm3/plots2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qm3/plots2/git/refs{/sha}","trees_url":"https://api.github.com/repos/qm3/plots2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qm3/plots2/statuses/{sha}","languages_url":"https://api.github.com/repos/qm3/plots2/languages","stargazers_url":"https://api.github.com/repos/qm3/plots2/stargazers","contributors_url":"https://api.github.com/repos/qm3/plots2/contributors","subscribers_url":"https://api.github.com/repos/qm3/plots2/subscribers","subscription_url":"https://api.github.com/repos/qm3/plots2/subscription","commits_url":"https://api.github.com/repos/qm3/plots2/commits{/sha}","git_commits_url":"https://api.github.com/repos/qm3/plots2/git/commits{/sha}","comments_url":"https://api.github.com/repos/qm3/plots2/comments{/number}","issue_comment_url":"https://api.github.com/repos/qm3/plots2/issues/comments{/number}","contents_url":"https://api.github.com/repos/qm3/plots2/contents/{+path}","compare_url":"https://api.github.com/repos/qm3/plots2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qm3/plots2/merges","archive_url":"https://api.github.com/repos/qm3/plots2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qm3/plots2/downloads","issues_url":"https://api.github.com/repos/qm3/plots2/issues{/number}","pulls_url":"https://api.github.com/repos/qm3/plots2/pulls{/number}","milestones_url":"https://api.github.com/repos/qm3/plots2/milestones{/number}","notifications_url":"https://api.github.com/repos/qm3/plots2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qm3/plots2/labels{/name}","releases_url":"https://api.github.com/repos/qm3/plots2/releases{/id}","deployments_url":"https://api.github.com/repos/qm3/plots2/deployments","created_at":"2018-08-06T04:46:38Z","updated_at":"2018-08-11T23:53:32Z","pushed_at":"2018-08-11T23:53:31Z","git_url":"git://github.com/qm3/plots2.git","ssh_url":"git@github.com:qm3/plots2.git","clone_url":"https://github.com/qm3/plots2.git","svn_url":"https://github.com/qm3/plots2","homepage":"https://publiclab.org","size":16093,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"publiclab:master","ref":"master","sha":"c1db11e670f9e67958365c9cbc3761d4083fe714","user":{"login":"publiclab","id":4621650,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MjE2NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/4621650?v=4","gravatar_id":"","url":"https://api.github.com/users/publiclab","html_url":"https://github.com/publiclab","followers_url":"https://api.github.com/users/publiclab/followers","following_url":"https://api.github.com/users/publiclab/following{/other_user}","gists_url":"https://api.github.com/users/publiclab/gists{/gist_id}","starred_url":"https://api.github.com/users/publiclab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publiclab/subscriptions","organizations_url":"https://api.github.com/users/publiclab/orgs","repos_url":"https://api.github.com/users/publiclab/repos","events_url":"https://api.github.com/users/publiclab/events{/privacy}","received_events_url":"https://api.github.com/users/publiclab/received_events","type":"Organization","site_admin":false},"repo":{"id":10504669,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUwNDY2OQ==","name":"plots2","full_name":"publiclab/plots2","owner":{"login":"publiclab","id":4621650,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MjE2NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/4621650?v=4","gravatar_id":"","url":"https://api.github.com/users/publiclab","html_url":"https://github.com/publiclab","followers_url":"https://api.github.com/users/publiclab/followers","following_url":"https://api.github.com/users/publiclab/following{/other_user}","gists_url":"https://api.github.com/users/publiclab/gists{/gist_id}","starred_url":"https://api.github.com/users/publiclab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/publiclab/subscriptions","organizations_url":"https://api.github.com/users/publiclab/orgs","repos_url":"https://api.github.com/users/publiclab/repos","events_url":"https://api.github.com/users/publiclab/events{/privacy}","received_events_url":"https://api.github.com/users/publiclab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/publiclab/plots2","description":"PublicLab.org - a collaborative knowledge-exchange platform in Rails; we welcome first-time contributors! :balloon:","fork":false,"url":"https://api.github.com/repos/publiclab/plots2","forks_url":"https://api.github.com/repos/publiclab/plots2/forks","keys_url":"https://api.github.com/repos/publiclab/plots2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/publiclab/plots2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/publiclab/plots2/teams","hooks_url":"https://api.github.com/repos/publiclab/plots2/hooks","issue_events_url":"https://api.github.com/repos/publiclab/plots2/issues/events{/number}","events_url":"https://api.github.com/repos/publiclab/plots2/events","assignees_url":"https://api.github.com/repos/publiclab/plots2/assignees{/user}","branches_url":"https://api.github.com/repos/publiclab/plots2/branches{/branch}","tags_url":"https://api.github.com/repos/publiclab/plots2/tags","blobs_url":"https://api.github.com/repos/publiclab/plots2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/publiclab/plots2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/publiclab/plots2/git/refs{/sha}","trees_url":"https://api.github.com/repos/publiclab/plots2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/publiclab/plots2/statuses/{sha}","languages_url":"https://api.github.com/repos/publiclab/plots2/languages","stargazers_url":"https://api.github.com/repos/publiclab/plots2/stargazers","contributors_url":"https://api.github.com/repos/publiclab/plots2/contributors","subscribers_url":"https://api.github.com/repos/publiclab/plots2/subscribers","subscription_url":"https://api.github.com/repos/publiclab/plots2/subscription","commits_url":"https://api.github.com/repos/publiclab/plots2/commits{/sha}","git_commits_url":"https://api.github.com/repos/publiclab/plots2/git/commits{/sha}","comments_url":"https://api.github.com/repos/publiclab/plots2/comments{/number}","issue_comment_url":"https://api.github.com/repos/publiclab/plots2/issues/comments{/number}","contents_url":"https://api.github.com/repos/publiclab/plots2/contents/{+path}","compare_url":"https://api.github.com/repos/publiclab/plots2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/publiclab/plots2/merges","archive_url":"https://api.github.com/repos/publiclab/plots2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/publiclab/plots2/downloads","issues_url":"https://api.github.com/repos/publiclab/plots2/issues{/number}","pulls_url":"https://api.github.com/repos/publiclab/plots2/pulls{/number}","milestones_url":"https://api.github.com/repos/publiclab/plots2/milestones{/number}","notifications_url":"https://api.github.com/repos/publiclab/plots2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/publiclab/plots2/labels{/name}","releases_url":"https://api.github.com/repos/publiclab/plots2/releases{/id}","deployments_url":"https://api.github.com/repos/publiclab/plots2/deployments","created_at":"2013-06-05T14:36:10Z","updated_at":"2018-08-11T17:00:04Z","pushed_at":"2018-08-12T03:41:58Z","git_url":"git://github.com/publiclab/plots2.git","ssh_url":"git@github.com:publiclab/plots2.git","clone_url":"https://github.com/publiclab/plots2.git","svn_url":"https://github.com/publiclab/plots2","homepage":"https://publiclab.org","size":16152,"stargazers_count":261,"watchers_count":261,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":364,"mirror_url":null,"archived":false,"open_issues_count":311,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":364,"open_issues":311,"watchers":261,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/3207"},"html":{"href":"https://github.com/publiclab/plots2/pull/3207"},"issue":{"href":"https://api.github.com/repos/publiclab/plots2/issues/3207"},"comments":{"href":"https://api.github.com/repos/publiclab/plots2/issues/3207/comments"},"review_comments":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/3207/comments"},"review_comment":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/publiclab/plots2/pulls/3207/commits"},"statuses":{"href":"https://api.github.com/repos/publiclab/plots2/statuses/96f4522d9cb79a71a85515c6746894ff4c1c7b03"}},"author_association":"NONE"}}
{"actor":{"display_login":"gauravano"}}