{"action":"created","issue":{"url":"https://api.github.com/repos/publiclab/plots2/issues/2412","repository_url":"https://api.github.com/repos/publiclab/plots2","labels_url":"https://api.github.com/repos/publiclab/plots2/issues/2412/labels{/name}","comments_url":"https://api.github.com/repos/publiclab/plots2/issues/2412/comments","events_url":"https://api.github.com/repos/publiclab/plots2/issues/2412/events","html_url":"https://github.com/publiclab/plots2/issues/2412","id":300706942,"number":2412,"title":"Add a button to report comments spam to moderators","user":{"login":"first-timers[bot]","id":31459394,"avatar_url":"https://avatars3.githubusercontent.com/in/4832?v=4","gravatar_id":"","url":"https://api.github.com/users/first-timers%5Bbot%5D","html_url":"https://github.com/apps/first-timers","followers_url":"https://api.github.com/users/first-timers%5Bbot%5D/followers","following_url":"https://api.github.com/users/first-timers%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/first-timers%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/first-timers%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/first-timers%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/first-timers%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/first-timers%5Bbot%5D/repos","events_url":"https://api.github.com/users/first-timers%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/first-timers%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[{"id":342625116,"url":"https://api.github.com/repos/publiclab/plots2/labels/first-timers-only","name":"first-timers-only","color":"e99695","default":false},{"id":173349489,"url":"https://api.github.com/repos/publiclab/plots2/labels/help-wanted","name":"help-wanted","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-27T16:44:32Z","updated_at":"2018-02-27T17:08:31Z","closed_at":null,"author_association":"NONE","body":"Hi, this is a [first-timers-only issue](https://publiclab.github.io/community-toolbox/#r=all). This means we've worked to make it more legible to folks who either **haven't contributed to our codebase before, or even folks who haven't contributed to open source before**. \r\n\r\nIf that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!\r\n\r\nWe know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝\r\n\r\nIf you have contributed before, **consider leaving this one for someone new**, and looking through our general [help wanted](https://github.com/publiclab/plots2/labels/help-wanted) issues. Thanks!\r\n\r\n### 🤔 What you will need to know.\r\n\r\nNothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.\r\n\r\n### 📋 Step by Step\r\n\r\n- [ ] 🙋 **Claim this issue**: Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!\r\n\r\n- [ ] 📝 **Update** the file [app/views/notes/_comment.html.erb](https://github.com/publiclab/plots2/blob/master/_comment.html.erb) in the `plots2` repository (press the little pen Icon) and edit the line as shown below. \r\n\r\n[See this page](https://publiclab.github.io/community-toolbox/#r=all) for some help in taking your first steps!\r\n\r\nBelow is a \"diff\" showing in red (and a `-`) which lines to remove, and in green (and a `+`) which lines to add:\r\n\r\n```diff\r\n@@ -44,6 +44,10 @@\r\n           <i class='icon fa fa-trash'></i>\r\n         </a>\r\n       <% end %>\r\n+      \r\n+      <a rel=\"tooltip\" title=\"Flag as spam.\" class=\"btn btn-sm btn-default\" href=\"mailto:moderators@publiclab.org?subject=Reporting+spam+on+Public Lab&body=Hi,+I+found+this+item+that+looks+like+spam+or+needs+to+be+moderated:+\"<%= comment.body.replace(' ','+') %>\"%0A%0Ahttps://publiclab.org/n/<%= node.id %>%0Aby+https://publiclab.org/profile/<%= comment.author.username %>%0A%0AThanks!\">\r\n+        <i class=\"far fa-flag\"></i>\r\n+      </a>\r\n     </div>\r\n \r\n   </div>\r\n```\r\n\r\n\r\n- [ ] 💾 **Commit** your changes\r\n\r\n- [ ] 🔀 **Start a Pull Request**. There are two ways how you can start a pull request:\r\n\r\n1. If you are familiar with the terminal or would like to learn it, [here is a great tutorial](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) on how to send a pull request using the terminal.\r\n\r\n2. You can also [edit files directly in your browser](https://help.github.com/articles/editing-files-in-your-repository/) and open a pull request from there. \r\n\r\n- [ ] 🏁 **Done** Ask in comments for a review :)\r\n\r\n\r\n### 🤔❓ Questions?\r\n\r\nLeave a comment below!\r\n\r\n### Is someone else already working on this?\r\n\r\nWe encourage you to link to this issue by mentioning the issue # in your pull request, so we can see if someone's already started on it. **If someone seem stuck, offer them some help!** Otherwise, [take a look at some other issues you can help with](https://publiclab.github.io/community-toolbox/#r=all). Thanks!\r\n\r\n(This issue was created by [First-Timers-Bot](https://github.com/hoodiehq/first-timers-bot).)\r\n"},"comment":{"url":"https://api.github.com/repos/publiclab/plots2/issues/comments/368952184","html_url":"https://github.com/publiclab/plots2/issues/2412#issuecomment-368952184","issue_url":"https://api.github.com/repos/publiclab/plots2/issues/2412","id":368952184,"user":{"login":"jywarren","id":24359,"avatar_url":"https://avatars1.githubusercontent.com/u/24359?v=4","gravatar_id":"","url":"https://api.github.com/users/jywarren","html_url":"https://github.com/jywarren","followers_url":"https://api.github.com/users/jywarren/followers","following_url":"https://api.github.com/users/jywarren/following{/other_user}","gists_url":"https://api.github.com/users/jywarren/gists{/gist_id}","starred_url":"https://api.github.com/users/jywarren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jywarren/subscriptions","organizations_url":"https://api.github.com/users/jywarren/orgs","repos_url":"https://api.github.com/users/jywarren/repos","events_url":"https://api.github.com/users/jywarren/events{/privacy}","received_events_url":"https://api.github.com/users/jywarren/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T17:08:31Z","updated_at":"2018-02-27T17:08:31Z","author_association":"CONTRIBUTOR","body":"Hi, @chrislazo22 I actually created this one for @MittalS211 but I can make a new one for you too! So glad to have your help!"}}
{"actor":{"display_login":"jywarren"}}