{"action":"created","comment":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments/43189680","id":43189680,"diff_hunk":"@@ -213,6 +213,12 @@\n         sign_in organizer\n       end\n \n+      it 'cannot confirm competition' do\n+        patch :update, id: competition, competition: { name: competition.name }, commit: \"Confirm\"","path":"WcaOnRails/spec/controllers/competitions_controller_spec.rb","position":5,"original_position":5,"commit_id":"71454c814d6af91d6539fe3139f61288fc9fe8a6","original_commit_id":"71454c814d6af91d6539fe3139f61288fc9fe8a6","user":{"login":"timhabermaas","id":96054,"avatar_url":"https://avatars.githubusercontent.com/u/96054?v=3","gravatar_id":"","url":"https://api.github.com/users/timhabermaas","html_url":"https://github.com/timhabermaas","followers_url":"https://api.github.com/users/timhabermaas/followers","following_url":"https://api.github.com/users/timhabermaas/following{/other_user}","gists_url":"https://api.github.com/users/timhabermaas/gists{/gist_id}","starred_url":"https://api.github.com/users/timhabermaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhabermaas/subscriptions","organizations_url":"https://api.github.com/users/timhabermaas/orgs","repos_url":"https://api.github.com/users/timhabermaas/repos","events_url":"https://api.github.com/users/timhabermaas/events{/privacy}","received_events_url":"https://api.github.com/users/timhabermaas/received_events","type":"User","site_admin":false},"body":"Depending on the layout you could either add another form just for the confirmation button or use the [`formaction`](http://devdocs.io/html/element/button) attribute to overwrite the `form[action]` URL. I've never used the latter option and am not sure about browser compatibility, though.","created_at":"2015-10-27T21:24:04Z","updated_at":"2015-10-27T21:24:04Z","html_url":"https://github.com/cubing/worldcubeassociation.org/pull/203#discussion_r43189680","pull_request_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments/43189680"},"html":{"href":"https://github.com/cubing/worldcubeassociation.org/pull/203#discussion_r43189680"},"pull_request":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203","id":48911637,"html_url":"https://github.com/cubing/worldcubeassociation.org/pull/203","diff_url":"https://github.com/cubing/worldcubeassociation.org/pull/203.diff","patch_url":"https://github.com/cubing/worldcubeassociation.org/pull/203.patch","issue_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/203","number":203,"state":"open","locked":false,"title":"Don't let organizers confirm competitions","user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"body":"This fixes #202 \r\n\r\n@timhabermaas, could you take a look? Thanks!","created_at":"2015-10-27T18:23:15Z","updated_at":"2015-10-27T21:24:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cab1975632c1add901ba88125e4d04348389b39","assignee":{"login":"timhabermaas","id":96054,"avatar_url":"https://avatars.githubusercontent.com/u/96054?v=3","gravatar_id":"","url":"https://api.github.com/users/timhabermaas","html_url":"https://github.com/timhabermaas","followers_url":"https://api.github.com/users/timhabermaas/followers","following_url":"https://api.github.com/users/timhabermaas/following{/other_user}","gists_url":"https://api.github.com/users/timhabermaas/gists{/gist_id}","starred_url":"https://api.github.com/users/timhabermaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhabermaas/subscriptions","organizations_url":"https://api.github.com/users/timhabermaas/orgs","repos_url":"https://api.github.com/users/timhabermaas/repos","events_url":"https://api.github.com/users/timhabermaas/events{/privacy}","received_events_url":"https://api.github.com/users/timhabermaas/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203/commits","review_comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203/comments","review_comment_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/203/comments","statuses_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/71454c814d6af91d6539fe3139f61288fc9fe8a6","head":{"label":"jfly:master","ref":"master","sha":"71454c814d6af91d6539fe3139f61288fc9fe8a6","user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"repo":{"id":36788277,"name":"worldcubeassociation.org","full_name":"jfly/worldcubeassociation.org","owner":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfly/worldcubeassociation.org","description":"All of the code that runs on worldcubeassociation.org","fork":true,"url":"https://api.github.com/repos/jfly/worldcubeassociation.org","forks_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/releases{/id}","created_at":"2015-06-03T07:49:06Z","updated_at":"2015-06-03T07:49:10Z","pushed_at":"2015-10-27T18:22:29Z","git_url":"git://github.com/jfly/worldcubeassociation.org.git","ssh_url":"git@github.com:jfly/worldcubeassociation.org.git","clone_url":"https://github.com/jfly/worldcubeassociation.org.git","svn_url":"https://github.com/jfly/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":48275,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cubing:master","ref":"master","sha":"01c816e67c7e5df8fcd2237d9534836c5fd9a84e","user":{"login":"cubing","id":1092267,"avatar_url":"https://avatars.githubusercontent.com/u/1092267?v=3","gravatar_id":"","url":"https://api.github.com/users/cubing","html_url":"https://github.com/cubing","followers_url":"https://api.github.com/users/cubing/followers","following_url":"https://api.github.com/users/cubing/following{/other_user}","gists_url":"https://api.github.com/users/cubing/gists{/gist_id}","starred_url":"https://api.github.com/users/cubing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubing/subscriptions","organizations_url":"https://api.github.com/users/cubing/orgs","repos_url":"https://api.github.com/users/cubing/repos","events_url":"https://api.github.com/users/cubing/events{/privacy}","received_events_url":"https://api.github.com/users/cubing/received_events","type":"Organization","site_admin":false},"repo":{"id":34161579,"name":"worldcubeassociation.org","full_name":"cubing/worldcubeassociation.org","owner":{"login":"cubing","id":1092267,"avatar_url":"https://avatars.githubusercontent.com/u/1092267?v=3","gravatar_id":"","url":"https://api.github.com/users/cubing","html_url":"https://github.com/cubing","followers_url":"https://api.github.com/users/cubing/followers","following_url":"https://api.github.com/users/cubing/following{/other_user}","gists_url":"https://api.github.com/users/cubing/gists{/gist_id}","starred_url":"https://api.github.com/users/cubing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubing/subscriptions","organizations_url":"https://api.github.com/users/cubing/orgs","repos_url":"https://api.github.com/users/cubing/repos","events_url":"https://api.github.com/users/cubing/events{/privacy}","received_events_url":"https://api.github.com/users/cubing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cubing/worldcubeassociation.org","description":"[WCA Project] All of the code that runs on worldcubeassociation.org","fork":false,"url":"https://api.github.com/repos/cubing/worldcubeassociation.org","forks_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/releases{/id}","created_at":"2015-04-18T10:21:53Z","updated_at":"2015-08-17T19:53:55Z","pushed_at":"2015-10-27T18:23:15Z","git_url":"git://github.com/cubing/worldcubeassociation.org.git","ssh_url":"git@github.com:cubing/worldcubeassociation.org.git","clone_url":"https://github.com/cubing/worldcubeassociation.org.git","svn_url":"https://github.com/cubing/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":49152,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":82,"forks":12,"open_issues":82,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203"},"html":{"href":"https://github.com/cubing/worldcubeassociation.org/pull/203"},"issue":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/203"},"comments":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/71454c814d6af91d6539fe3139f61288fc9fe8a6"}}}}