{"action":"created","comment":{"url":"https://api.github.com/repos/sudara/alonetone/pulls/comments/238516166","pull_request_review_id":181075100,"id":238516166,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODUxNjE2Ng==","diff_hunk":"@@ -0,0 +1,38 @@\n+import { Controller } from 'stimulus'\n+\n+export default class extends Controller {\n+  static targets = ['spam', 'unspam', 'spamvalue']\n+\n+  initialize() {\n+    console.log(this.spamvalueTarget.innerHTML == \"true\")\n+    if (this.spamvalueTarget.innerHTML == \"true\") {\n+      this.unspamTarget.style.display = 'block'\n+      this.spamTarget.style.display = 'none'\n+    } else {\n+      this.unspamTarget.style.display = 'none'\n+      this.spamTarget.style.display = 'block'\n+    }\n+  }\n+\n+  connect() {\n+    // console.log(\"Hello, Stimulus!\", this.element)\n+  }\n+\n+  toggleDisplay(spam_true) {\n+    if (spam_true) {\n+      showSpamTarget()\n+    } else {\n+      showUnspamTarget()\n+    }\n+  }\n+\n+  showSpamTarget() {\n+    this.unspamTarget.style.display = 'block'\n+    this.spamTarget.style.display = 'none'\n+  }\n+\n+  showUnspamTarget(){","path":"app/javascript/controllers/admin/comment_controller.js","position":34,"original_position":34,"commit_id":"26044d678622792fa474f1d3ee77a39cae42d9cb","original_commit_id":"26044d678622792fa474f1d3ee77a39cae42d9cb","user":{"login":"sudara","id":472,"node_id":"MDQ6VXNlcjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/472?v=4","gravatar_id":"","url":"https://api.github.com/users/sudara","html_url":"https://github.com/sudara","followers_url":"https://api.github.com/users/sudara/followers","following_url":"https://api.github.com/users/sudara/following{/other_user}","gists_url":"https://api.github.com/users/sudara/gists{/gist_id}","starred_url":"https://api.github.com/users/sudara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudara/subscriptions","organizations_url":"https://api.github.com/users/sudara/orgs","repos_url":"https://api.github.com/users/sudara/repos","events_url":"https://api.github.com/users/sudara/events{/privacy}","received_events_url":"https://api.github.com/users/sudara/received_events","type":"User","site_admin":false},"body":"Maybe it's just complaining because of chunks of same code in initialize ","created_at":"2018-12-04T03:02:45Z","updated_at":"2018-12-04T03:02:45Z","html_url":"https://github.com/sudara/alonetone/pull/292#discussion_r238516166","pull_request_url":"https://api.github.com/repos/sudara/alonetone/pulls/292","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/sudara/alonetone/pulls/comments/238516166"},"html":{"href":"https://github.com/sudara/alonetone/pull/292#discussion_r238516166"},"pull_request":{"href":"https://api.github.com/repos/sudara/alonetone/pulls/292"}},"in_reply_to_id":238513716},"pull_request":{"url":"https://api.github.com/repos/sudara/alonetone/pulls/292","id":229868182,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5ODY4MTgy","html_url":"https://github.com/sudara/alonetone/pull/292","diff_url":"https://github.com/sudara/alonetone/pull/292.diff","patch_url":"https://github.com/sudara/alonetone/pull/292.patch","issue_url":"https://api.github.com/repos/sudara/alonetone/issues/292","number":292,"state":"open","locked":false,"title":"Admin assets and user","user":{"login":"innatewonderer","id":2320322,"node_id":"MDQ6VXNlcjIzMjAzMjI=","avatar_url":"https://avatars1.githubusercontent.com/u/2320322?v=4","gravatar_id":"","url":"https://api.github.com/users/innatewonderer","html_url":"https://github.com/innatewonderer","followers_url":"https://api.github.com/users/innatewonderer/followers","following_url":"https://api.github.com/users/innatewonderer/following{/other_user}","gists_url":"https://api.github.com/users/innatewonderer/gists{/gist_id}","starred_url":"https://api.github.com/users/innatewonderer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innatewonderer/subscriptions","organizations_url":"https://api.github.com/users/innatewonderer/orgs","repos_url":"https://api.github.com/users/innatewonderer/repos","events_url":"https://api.github.com/users/innatewonderer/events{/privacy}","received_events_url":"https://api.github.com/users/innatewonderer/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-10T03:49:51Z","updated_at":"2018-12-04T03:02:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd6ff68c08752f1ed5671ac089da4bc2d5690614","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sudara/alonetone/pulls/292/commits","review_comments_url":"https://api.github.com/repos/sudara/alonetone/pulls/292/comments","review_comment_url":"https://api.github.com/repos/sudara/alonetone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sudara/alonetone/issues/292/comments","statuses_url":"https://api.github.com/repos/sudara/alonetone/statuses/26044d678622792fa474f1d3ee77a39cae42d9cb","head":{"label":"sudara:admin-assets-and-user","ref":"admin-assets-and-user","sha":"26044d678622792fa474f1d3ee77a39cae42d9cb","user":{"login":"sudara","id":472,"node_id":"MDQ6VXNlcjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/472?v=4","gravatar_id":"","url":"https://api.github.com/users/sudara","html_url":"https://github.com/sudara","followers_url":"https://api.github.com/users/sudara/followers","following_url":"https://api.github.com/users/sudara/following{/other_user}","gists_url":"https://api.github.com/users/sudara/gists{/gist_id}","starred_url":"https://api.github.com/users/sudara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudara/subscriptions","organizations_url":"https://api.github.com/users/sudara/orgs","repos_url":"https://api.github.com/users/sudara/repos","events_url":"https://api.github.com/users/sudara/events{/privacy}","received_events_url":"https://api.github.com/users/sudara/received_events","type":"User","site_admin":false},"repo":{"id":3456,"node_id":"MDEwOlJlcG9zaXRvcnkzNDU2","name":"alonetone","full_name":"sudara/alonetone","private":false,"owner":{"login":"sudara","id":472,"node_id":"MDQ6VXNlcjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/472?v=4","gravatar_id":"","url":"https://api.github.com/users/sudara","html_url":"https://github.com/sudara","followers_url":"https://api.github.com/users/sudara/followers","following_url":"https://api.github.com/users/sudara/following{/other_user}","gists_url":"https://api.github.com/users/sudara/gists{/gist_id}","starred_url":"https://api.github.com/users/sudara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudara/subscriptions","organizations_url":"https://api.github.com/users/sudara/orgs","repos_url":"https://api.github.com/users/sudara/repos","events_url":"https://api.github.com/users/sudara/events{/privacy}","received_events_url":"https://api.github.com/users/sudara/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sudara/alonetone","description":"The kick ass, open source, non-commercial home for musicians and their music","fork":false,"url":"https://api.github.com/repos/sudara/alonetone","forks_url":"https://api.github.com/repos/sudara/alonetone/forks","keys_url":"https://api.github.com/repos/sudara/alonetone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudara/alonetone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudara/alonetone/teams","hooks_url":"https://api.github.com/repos/sudara/alonetone/hooks","issue_events_url":"https://api.github.com/repos/sudara/alonetone/issues/events{/number}","events_url":"https://api.github.com/repos/sudara/alonetone/events","assignees_url":"https://api.github.com/repos/sudara/alonetone/assignees{/user}","branches_url":"https://api.github.com/repos/sudara/alonetone/branches{/branch}","tags_url":"https://api.github.com/repos/sudara/alonetone/tags","blobs_url":"https://api.github.com/repos/sudara/alonetone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudara/alonetone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudara/alonetone/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudara/alonetone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudara/alonetone/statuses/{sha}","languages_url":"https://api.github.com/repos/sudara/alonetone/languages","stargazers_url":"https://api.github.com/repos/sudara/alonetone/stargazers","contributors_url":"https://api.github.com/repos/sudara/alonetone/contributors","subscribers_url":"https://api.github.com/repos/sudara/alonetone/subscribers","subscription_url":"https://api.github.com/repos/sudara/alonetone/subscription","commits_url":"https://api.github.com/repos/sudara/alonetone/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudara/alonetone/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudara/alonetone/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudara/alonetone/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudara/alonetone/contents/{+path}","compare_url":"https://api.github.com/repos/sudara/alonetone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudara/alonetone/merges","archive_url":"https://api.github.com/repos/sudara/alonetone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudara/alonetone/downloads","issues_url":"https://api.github.com/repos/sudara/alonetone/issues{/number}","pulls_url":"https://api.github.com/repos/sudara/alonetone/pulls{/number}","milestones_url":"https://api.github.com/repos/sudara/alonetone/milestones{/number}","notifications_url":"https://api.github.com/repos/sudara/alonetone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudara/alonetone/labels{/name}","releases_url":"https://api.github.com/repos/sudara/alonetone/releases{/id}","deployments_url":"https://api.github.com/repos/sudara/alonetone/deployments","created_at":"2008-03-11T11:43:25Z","updated_at":"2018-12-04T01:33:22Z","pushed_at":"2018-12-04T02:44:31Z","git_url":"git://github.com/sudara/alonetone.git","ssh_url":"git@github.com:sudara/alonetone.git","clone_url":"https://github.com/sudara/alonetone.git","svn_url":"https://github.com/sudara/alonetone","homepage":"https://alonetone.com","size":54805,"stargazers_count":198,"watchers_count":198,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":53,"open_issues":40,"watchers":198,"default_branch":"master"}},"base":{"label":"sudara:master","ref":"master","sha":"67181c0611239b34b4f84e7300e0558682a41a85","user":{"login":"sudara","id":472,"node_id":"MDQ6VXNlcjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/472?v=4","gravatar_id":"","url":"https://api.github.com/users/sudara","html_url":"https://github.com/sudara","followers_url":"https://api.github.com/users/sudara/followers","following_url":"https://api.github.com/users/sudara/following{/other_user}","gists_url":"https://api.github.com/users/sudara/gists{/gist_id}","starred_url":"https://api.github.com/users/sudara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudara/subscriptions","organizations_url":"https://api.github.com/users/sudara/orgs","repos_url":"https://api.github.com/users/sudara/repos","events_url":"https://api.github.com/users/sudara/events{/privacy}","received_events_url":"https://api.github.com/users/sudara/received_events","type":"User","site_admin":false},"repo":{"id":3456,"node_id":"MDEwOlJlcG9zaXRvcnkzNDU2","name":"alonetone","full_name":"sudara/alonetone","private":false,"owner":{"login":"sudara","id":472,"node_id":"MDQ6VXNlcjQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/472?v=4","gravatar_id":"","url":"https://api.github.com/users/sudara","html_url":"https://github.com/sudara","followers_url":"https://api.github.com/users/sudara/followers","following_url":"https://api.github.com/users/sudara/following{/other_user}","gists_url":"https://api.github.com/users/sudara/gists{/gist_id}","starred_url":"https://api.github.com/users/sudara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudara/subscriptions","organizations_url":"https://api.github.com/users/sudara/orgs","repos_url":"https://api.github.com/users/sudara/repos","events_url":"https://api.github.com/users/sudara/events{/privacy}","received_events_url":"https://api.github.com/users/sudara/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sudara/alonetone","description":"The kick ass, open source, non-commercial home for musicians and their music","fork":false,"url":"https://api.github.com/repos/sudara/alonetone","forks_url":"https://api.github.com/repos/sudara/alonetone/forks","keys_url":"https://api.github.com/repos/sudara/alonetone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudara/alonetone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudara/alonetone/teams","hooks_url":"https://api.github.com/repos/sudara/alonetone/hooks","issue_events_url":"https://api.github.com/repos/sudara/alonetone/issues/events{/number}","events_url":"https://api.github.com/repos/sudara/alonetone/events","assignees_url":"https://api.github.com/repos/sudara/alonetone/assignees{/user}","branches_url":"https://api.github.com/repos/sudara/alonetone/branches{/branch}","tags_url":"https://api.github.com/repos/sudara/alonetone/tags","blobs_url":"https://api.github.com/repos/sudara/alonetone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudara/alonetone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudara/alonetone/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudara/alonetone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudara/alonetone/statuses/{sha}","languages_url":"https://api.github.com/repos/sudara/alonetone/languages","stargazers_url":"https://api.github.com/repos/sudara/alonetone/stargazers","contributors_url":"https://api.github.com/repos/sudara/alonetone/contributors","subscribers_url":"https://api.github.com/repos/sudara/alonetone/subscribers","subscription_url":"https://api.github.com/repos/sudara/alonetone/subscription","commits_url":"https://api.github.com/repos/sudara/alonetone/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudara/alonetone/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudara/alonetone/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudara/alonetone/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudara/alonetone/contents/{+path}","compare_url":"https://api.github.com/repos/sudara/alonetone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudara/alonetone/merges","archive_url":"https://api.github.com/repos/sudara/alonetone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudara/alonetone/downloads","issues_url":"https://api.github.com/repos/sudara/alonetone/issues{/number}","pulls_url":"https://api.github.com/repos/sudara/alonetone/pulls{/number}","milestones_url":"https://api.github.com/repos/sudara/alonetone/milestones{/number}","notifications_url":"https://api.github.com/repos/sudara/alonetone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudara/alonetone/labels{/name}","releases_url":"https://api.github.com/repos/sudara/alonetone/releases{/id}","deployments_url":"https://api.github.com/repos/sudara/alonetone/deployments","created_at":"2008-03-11T11:43:25Z","updated_at":"2018-12-04T01:33:22Z","pushed_at":"2018-12-04T02:44:31Z","git_url":"git://github.com/sudara/alonetone.git","ssh_url":"git@github.com:sudara/alonetone.git","clone_url":"https://github.com/sudara/alonetone.git","svn_url":"https://github.com/sudara/alonetone","homepage":"https://alonetone.com","size":54805,"stargazers_count":198,"watchers_count":198,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":53,"open_issues":40,"watchers":198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sudara/alonetone/pulls/292"},"html":{"href":"https://github.com/sudara/alonetone/pull/292"},"issue":{"href":"https://api.github.com/repos/sudara/alonetone/issues/292"},"comments":{"href":"https://api.github.com/repos/sudara/alonetone/issues/292/comments"},"review_comments":{"href":"https://api.github.com/repos/sudara/alonetone/pulls/292/comments"},"review_comment":{"href":"https://api.github.com/repos/sudara/alonetone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sudara/alonetone/pulls/292/commits"},"statuses":{"href":"https://api.github.com/repos/sudara/alonetone/statuses/26044d678622792fa474f1d3ee77a39cae42d9cb"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sudara"}}