{"action":"created","comment":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/comments/70249233","id":70249233,"diff_hunk":"@@ -0,0 +1,126 @@\n+###\n+# Copyright 2015 ppy Pty. Ltd.\n+#\n+# This file is part of osu!web. osu!web is distributed with the hope of\n+# attracting more community contributions to the core ecosystem of osu!.\n+#\n+# osu!web is free software: you can redistribute it and/or modify\n+# it under the terms of the Affero GNU General Public License version 3\n+# as published by the Free Software Foundation.\n+#\n+# osu!web is distributed WITHOUT ANY WARRANTY; without even the implied\n+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+# See the GNU Affero General Public License for more details.\n+#\n+# You should have received a copy of the GNU Affero General Public License\n+# along with osu!web.  If not, see <http://www.gnu.org/licenses/>.\n+###\n+{a, button, div, p, span} = React.DOM\n+el = React.createElement\n+\n+bdn = 'beatmap-discussion-nomination'\n+\n+BeatmapDiscussions.Nominations = React.createClass\n+  mixins: [React.addons.PureRenderMixin]\n+\n+  nominate: ->\n+    @doAjax 'nominate'\n+\n+  disqualify: ->\n+    reason = prompt('Reason for disqualification?')\n+    return unless reason\n+\n+    @doAjax 'disqualify', reason\n+\n+  doAjax: (action, comment) ->\n+    LoadingOverlay.show()\n+\n+    params =\n+      method: 'PUT'\n+\n+    if comment\n+      params['data'] = {'comment': comment}","path":"resources/assets/coffee/react/beatmap-discussions/nominations.coffee","position":42,"original_position":42,"commit_id":"45895c0a1e60a8faf367ce2216e9bd700e4a1664","original_commit_id":"45895c0a1e60a8faf367ce2216e9bd700e4a1664","user":{"login":"nanaya","id":276295,"avatar_url":"https://avatars.githubusercontent.com/u/276295?v=3","gravatar_id":"","url":"https://api.github.com/users/nanaya","html_url":"https://github.com/nanaya","followers_url":"https://api.github.com/users/nanaya/followers","following_url":"https://api.github.com/users/nanaya/following{/other_user}","gists_url":"https://api.github.com/users/nanaya/gists{/gist_id}","starred_url":"https://api.github.com/users/nanaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanaya/subscriptions","organizations_url":"https://api.github.com/users/nanaya/orgs","repos_url":"https://api.github.com/users/nanaya/repos","events_url":"https://api.github.com/users/nanaya/events{/privacy}","received_events_url":"https://api.github.com/users/nanaya/received_events","type":"User","site_admin":false},"body":"if there's no harm including empty comment, I'd just always include it.","created_at":"2016-07-11T12:40:58Z","updated_at":"2016-07-11T12:40:58Z","html_url":"https://github.com/ppy/osu-web/pull/641#discussion_r70249233","pull_request_url":"https://api.github.com/repos/ppy/osu-web/pulls/641","_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments/70249233"},"html":{"href":"https://github.com/ppy/osu-web/pull/641#discussion_r70249233"},"pull_request":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/641"}}},"pull_request":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/641","id":76567655,"html_url":"https://github.com/ppy/osu-web/pull/641","diff_url":"https://github.com/ppy/osu-web/pull/641.diff","patch_url":"https://github.com/ppy/osu-web/pull/641.patch","issue_url":"https://api.github.com/repos/ppy/osu-web/issues/641","number":641,"state":"open","locked":false,"title":"Beatmap nomination system","user":{"login":"nekodex","id":272140,"avatar_url":"https://avatars.githubusercontent.com/u/272140?v=3","gravatar_id":"","url":"https://api.github.com/users/nekodex","html_url":"https://github.com/nekodex","followers_url":"https://api.github.com/users/nekodex/followers","following_url":"https://api.github.com/users/nekodex/following{/other_user}","gists_url":"https://api.github.com/users/nekodex/gists{/gist_id}","starred_url":"https://api.github.com/users/nekodex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekodex/subscriptions","organizations_url":"https://api.github.com/users/nekodex/orgs","repos_url":"https://api.github.com/users/nekodex/repos","events_url":"https://api.github.com/users/nekodex/events{/privacy}","received_events_url":"https://api.github.com/users/nekodex/received_events","type":"User","site_admin":false},"body":"Add ability for BNG/QAT to nominate beatmaps and for QATs to disqualify beatmaps in the modding system.\r\n\r\nNominated:\r\n![](https://puu.sh/pTezn/4d5cac80bf.png)\r\nQualified:\r\n![](https://puu.sh/pTeAk/0429faef10.png)\r\nDisqualified:\r\n![](https://puu.sh/pTeAX/5d1a5e8971.png)\r\n\r\nDisqualification message prompt is just an alert box for now until the redesign of the modding stuff is done.\r\n\r\nAddresses some more stuff from #582","created_at":"2016-07-07T09:51:25Z","updated_at":"2016-07-11T12:40:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d86951a2381438a273923438f31710edb6564be7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ppy/osu-web/pulls/641/commits","review_comments_url":"https://api.github.com/repos/ppy/osu-web/pulls/641/comments","review_comment_url":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ppy/osu-web/issues/641/comments","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/45895c0a1e60a8faf367ce2216e9bd700e4a1664","head":{"label":"ppy:nekodex/nominate","ref":"nekodex/nominate","sha":"45895c0a1e60a8faf367ce2216e9bd700e4a1664","user":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"repo":{"id":41410580,"name":"osu-web","full_name":"ppy/osu-web","owner":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ppy/osu-web","description":"the future face of osu!","fork":false,"url":"https://api.github.com/repos/ppy/osu-web","forks_url":"https://api.github.com/repos/ppy/osu-web/forks","keys_url":"https://api.github.com/repos/ppy/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppy/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppy/osu-web/teams","hooks_url":"https://api.github.com/repos/ppy/osu-web/hooks","issue_events_url":"https://api.github.com/repos/ppy/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/ppy/osu-web/events","assignees_url":"https://api.github.com/repos/ppy/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/ppy/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/ppy/osu-web/tags","blobs_url":"https://api.github.com/repos/ppy/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppy/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppy/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppy/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ppy/osu-web/languages","stargazers_url":"https://api.github.com/repos/ppy/osu-web/stargazers","contributors_url":"https://api.github.com/repos/ppy/osu-web/contributors","subscribers_url":"https://api.github.com/repos/ppy/osu-web/subscribers","subscription_url":"https://api.github.com/repos/ppy/osu-web/subscription","commits_url":"https://api.github.com/repos/ppy/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppy/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppy/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppy/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppy/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/ppy/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppy/osu-web/merges","archive_url":"https://api.github.com/repos/ppy/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppy/osu-web/downloads","issues_url":"https://api.github.com/repos/ppy/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/ppy/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ppy/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ppy/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppy/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/ppy/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/ppy/osu-web/deployments","created_at":"2015-08-26T07:14:32Z","updated_at":"2016-07-07T21:22:01Z","pushed_at":"2016-07-10T07:06:57Z","git_url":"git://github.com/ppy/osu-web.git","ssh_url":"git@github.com:ppy/osu-web.git","clone_url":"https://github.com/ppy/osu-web.git","svn_url":"https://github.com/ppy/osu-web","homepage":null,"size":26235,"stargazers_count":194,"watchers_count":194,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":92,"forks":75,"open_issues":92,"watchers":194,"default_branch":"master"}},"base":{"label":"ppy:master","ref":"master","sha":"9f94db4ee50237a47277e2a2e6b63dedfe119291","user":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"repo":{"id":41410580,"name":"osu-web","full_name":"ppy/osu-web","owner":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ppy/osu-web","description":"the future face of osu!","fork":false,"url":"https://api.github.com/repos/ppy/osu-web","forks_url":"https://api.github.com/repos/ppy/osu-web/forks","keys_url":"https://api.github.com/repos/ppy/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppy/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppy/osu-web/teams","hooks_url":"https://api.github.com/repos/ppy/osu-web/hooks","issue_events_url":"https://api.github.com/repos/ppy/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/ppy/osu-web/events","assignees_url":"https://api.github.com/repos/ppy/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/ppy/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/ppy/osu-web/tags","blobs_url":"https://api.github.com/repos/ppy/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppy/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppy/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppy/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ppy/osu-web/languages","stargazers_url":"https://api.github.com/repos/ppy/osu-web/stargazers","contributors_url":"https://api.github.com/repos/ppy/osu-web/contributors","subscribers_url":"https://api.github.com/repos/ppy/osu-web/subscribers","subscription_url":"https://api.github.com/repos/ppy/osu-web/subscription","commits_url":"https://api.github.com/repos/ppy/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppy/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppy/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppy/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppy/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/ppy/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppy/osu-web/merges","archive_url":"https://api.github.com/repos/ppy/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppy/osu-web/downloads","issues_url":"https://api.github.com/repos/ppy/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/ppy/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ppy/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ppy/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppy/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/ppy/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/ppy/osu-web/deployments","created_at":"2015-08-26T07:14:32Z","updated_at":"2016-07-07T21:22:01Z","pushed_at":"2016-07-10T07:06:57Z","git_url":"git://github.com/ppy/osu-web.git","ssh_url":"git@github.com:ppy/osu-web.git","clone_url":"https://github.com/ppy/osu-web.git","svn_url":"https://github.com/ppy/osu-web","homepage":null,"size":26235,"stargazers_count":194,"watchers_count":194,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":92,"forks":75,"open_issues":92,"watchers":194,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/641"},"html":{"href":"https://github.com/ppy/osu-web/pull/641"},"issue":{"href":"https://api.github.com/repos/ppy/osu-web/issues/641"},"comments":{"href":"https://api.github.com/repos/ppy/osu-web/issues/641/comments"},"review_comments":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/641/comments"},"review_comment":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/641/commits"},"statuses":{"href":"https://api.github.com/repos/ppy/osu-web/statuses/45895c0a1e60a8faf367ce2216e9bd700e4a1664"}}}}
{"actor":{"display_login":"nanaya"}}