GitHub PullRequestEvent at 2014-09-20 13:54:43
Repository: publicwhip
Actor: damncabbage
Payload: {"action":"opened","number":526,"pull_request":{"url":"https://api.github.com/repos/openaustralia/publicwhip/pulls/526","id":21537569,"html_url":"https://github.com/openaustralia/publicwhip/pull/526","diff_url":"https://github.com/openaustralia/publicwhip/pull/526.diff","patch_url":"https://github.com/openaustralia/publicwhip/pull/526.patch","issue_url":"https://api.github.com/repos/openaustralia/publicwhip/issues/526","number":526,"state":"open","locked":false,"title":"Re-enabled CSRF protection for Policies and Divisions.","user":{"login":"damncabbage","id":133028,"avatar_url":"https://avatars.githubusercontent.com/u/133028?v=2","gravatar_id":"e34acb847338523dc088f03f0eedd1eb","url":"https://api.github.com/users/damncabbage","html_url":"https://github.com/damncabbage","followers_url":"https://api.github.com/users/damncabbage/followers","following_url":"https://api.github.com/users/damncabbage/following{/other_user}","gists_url":"https://api.github.com/users/damncabbage/gists{/gist_id}","starred_url":"https://api.github.com/users/damncabbage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damncabbage/subscriptions","organizations_url":"https://api.github.com/users/damncabbage/orgs","repos_url":"https://api.github.com/users/damncabbage/repos","events_url":"https://api.github.com/users/damncabbage/events{/privacy}","received_events_url":"https://api.github.com/users/damncabbage/received_events","type":"User","site_admin":false},"body":"This removes the lines disabling CSRF protection, and switches the manual form tags back over to `form_for`.\r\n\r\nA couple of tweaks were needed along the way:\r\n* `post` => `patch`\r\n* Specifically checking for *errors* on a new Policy record; a dummy `@policy` is needed for the form helper.\r\n\r\n(Fixes #445.)","created_at":"2014-09-20T13:54:43Z","updated_at":"2014-09-20T13:54:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openaustralia/publicwhip/pulls/526/commits","review_comments_url":"https://api.github.com/repos/openaustralia/publicwhip/pulls/526/comments","review_comment_url":"https://api.github.com/repos/openaustralia/publicwhip/pulls/comments/{number}","comments_url":"https://api.github.com/repos/openaustralia/publicwhip/issues/526/comments","statuses_url":"https://api.github.com/repos/openaustralia/publicwhip/statuses/0d1f847de6b740006176a7f9cfd023e08a467843","head":{"label":"damncabbage:csrf-protection-445","ref":"csrf-protection-445","sha":"0d1f847de6b740006176a7f9cfd023e08a467843","user":{"login":"damncabbage","id":133028,"avatar_url":"https://avatars.githubusercontent.com/u/133028?v=2","gravatar_id":"e34acb847338523dc088f03f0eedd1eb","url":"https://api.github.com/users/damncabbage","html_url":"https://github.com/damncabbage","followers_url":"https://api.github.com/users/damncabbage/followers","following_url":"https://api.github.com/users/damncabbage/following{/other_user}","gists_url":"https://api.github.com/users/damncabbage/gists{/gist_id}","starred_url":"https://api.github.com/users/damncabbage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damncabbage/subscriptions","organizations_url":"https://api.github.com/users/damncabbage/orgs","repos_url":"https://api.github.com/users/damncabbage/repos","events_url":"https://api.github.com/users/damncabbage/events{/privacy}","received_events_url":"https://api.github.com/users/damncabbage/received_events","type":"User","site_admin":false},"repo":{"id":24255846,"name":"publicwhip","full_name":"damncabbage/publicwhip","owner":{"login":"damncabbage","id":133028,"avatar_url":"https://avatars.githubusercontent.com/u/133028?v=2","gravatar_id":"e34acb847338523dc088f03f0eedd1eb","url":"https://api.github.com/users/damncabbage","html_url":"https://github.com/damncabbage","followers_url":"https://api.github.com/users/damncabbage/followers","following_url":"https://api.github.com/users/damncabbage/following{/other_user}","gists_url":"https://api.github.com/users/damncabbage/gists{/gist_id}","starred_url":"https://api.github.com/users/damncabbage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damncabbage/subscriptions","organizations_url":"https://api.github.com/users/damncabbage/orgs","repos_url":"https://api.github.com/users/damncabbage/repos","events_url":"https://api.github.com/users/damncabbage/events{/privacy}","received_events_url":"https://api.github.com/users/damncabbage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damncabbage/publicwhip","description":"Helping you find out if your MP represents you by analysing their votes in Australia's parliament for you.","fork":true,"url":"https://api.github.com/repos/damncabbage/publicwhip","forks_url":"https://api.github.com/repos/damncabbage/publicwhip/forks","keys_url":"https://api.github.com/repos/damncabbage/publicwhip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damncabbage/publicwhip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damncabbage/publicwhip/teams","hooks_url":"https://api.github.com/repos/damncabbage/publicwhip/hooks","issue_events_url":"https://api.github.com/repos/damncabbage/publicwhip/issues/events{/number}","events_url":"https://api.github.com/repos/damncabbage/publicwhip/events","assignees_url":"https://api.github.com/repos/damncabbage/publicwhip/assignees{/user}","branches_url":"https://api.github.com/repos/damncabbage/publicwhip/branches{/branch}","tags_url":"https://api.github.com/repos/damncabbage/publicwhip/tags","blobs_url":"https://api.github.com/repos/damncabbage/publicwhip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damncabbage/publicwhip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damncabbage/publicwhip/git/refs{/sha}","trees_url":"https://api.github.com/repos/damncabbage/publicwhip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damncabbage/publicwhip/statuses/{sha}","languages_url":"https://api.github.com/repos/damncabbage/publicwhip/languages","stargazers_url":"https://api.github.com/repos/damncabbage/publicwhip/stargazers","contributors_url":"https://api.github.com/repos/damncabbage/publicwhip/contributors","subscribers_url":"https://api.github.com/repos/damncabbage/publicwhip/subscribers","subscription_url":"https://api.github.com/repos/damncabbage/publicwhip/subscription","commits_url":"https://api.github.com/repos/damncabbage/publicwhip/commits{/sha}","git_commits_url":"https://api.github.com/repos/damncabbage/publicwhip/git/commits{/sha}","comments_url":"https://api.github.com/repos/damncabbage/publicwhip/comments{/number}","issue_comment_url":"https://api.github.com/repos/damncabbage/publicwhip/issues/comments/{number}","contents_url":"https://api.github.com/repos/damncabbage/publicwhip/contents/{+path}","compare_url":"https://api.github.com/repos/damncabbage/publicwhip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damncabbage/publicwhip/merges","archive_url":"https://api.github.com/repos/damncabbage/publicwhip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damncabbage/publicwhip/downloads","issues_url":"https://api.github.com/repos/damncabbage/publicwhip/issues{/number}","pulls_url":"https://api.github.com/repos/damncabbage/publicwhip/pulls{/number}","milestones_url":"https://api.github.com/repos/damncabbage/publicwhip/milestones{/number}","notifications_url":"https://api.github.com/repos/damncabbage/publicwhip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damncabbage/publicwhip/labels{/name}","releases_url":"https://api.github.com/repos/damncabbage/publicwhip/releases{/id}","created_at":"2014-09-20T06:37:19Z","updated_at":"2014-09-04T04:38:22Z","pushed_at":"2014-09-20T13:50:04Z","git_url":"git://github.com/damncabbage/publicwhip.git","ssh_url":"git@github.com:damncabbage/publicwhip.git","clone_url":"https://github.com/damncabbage/publicwhip.git","svn_url":"https://github.com/damncabbage/publicwhip","homepage":"","size":227776,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"test"}},"base":{"label":"openaustralia:test","ref":"test","sha":"a571854761bc8d4692c3abaf954e0803d6e2afb6","user":{"login":"openaustralia","id":102012,"avatar_url":"https://avatars.githubusercontent.com/u/102012?v=2","gravatar_id":"2e52b2f0e4d5af5323071c7dbb85102c","url":"https://api.github.com/users/openaustralia","html_url":"https://github.com/openaustralia","followers_url":"https://api.github.com/users/openaustralia/followers","following_url":"https://api.github.com/users/openaustralia/following{/other_user}","gists_url":"https://api.github.com/users/openaustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/openaustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaustralia/subscriptions","organizations_url":"https://api.github.com/users/openaustralia/orgs","repos_url":"https://api.github.com/users/openaustralia/repos","events_url":"https://api.github.com/users/openaustralia/events{/privacy}","received_events_url":"https://api.github.com/users/openaustralia/received_events","type":"Organization","site_admin":false},"repo":{"id":9685051,"name":"publicwhip","full_name":"openaustralia/publicwhip","owner":{"login":"openaustralia","id":102012,"avatar_url":"https://avatars.githubusercontent.com/u/102012?v=2","gravatar_id":"2e52b2f0e4d5af5323071c7dbb85102c","url":"https://api.github.com/users/openaustralia","html_url":"https://github.com/openaustralia","followers_url":"https://api.github.com/users/openaustralia/followers","following_url":"https://api.github.com/users/openaustralia/following{/other_user}","gists_url":"https://api.github.com/users/openaustralia/gists{/gist_id}","starred_url":"https://api.github.com/users/openaustralia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaustralia/subscriptions","organizations_url":"https://api.github.com/users/openaustralia/orgs","repos_url":"https://api.github.com/users/openaustralia/repos","events_url":"https://api.github.com/users/openaustralia/events{/privacy}","received_events_url":"https://api.github.com/users/openaustralia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openaustralia/publicwhip","description":"Helping you find out if your MP represents you by analysing their votes in Australia's parliament for you.","fork":false,"url":"https://api.github.com/repos/openaustralia/publicwhip","forks_url":"https://api.github.com/repos/openaustralia/publicwhip/forks","keys_url":"https://api.github.com/repos/openaustralia/publicwhip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openaustralia/publicwhip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openaustralia/publicwhip/teams","hooks_url":"https://api.github.com/repos/openaustralia/publicwhip/hooks","issue_events_url":"https://api.github.com/repos/openaustralia/publicwhip/issues/events{/number}","events_url":"https://api.github.com/repos/openaustralia/publicwhip/events","assignees_url":"https://api.github.com/repos/openaustralia/publicwhip/assignees{/user}","branches_url":"https://api.github.com/repos/openaustralia/publicwhip/branches{/branch}","tags_url":"https://api.github.com/repos/openaustralia/publicwhip/tags","blobs_url":"https://api.github.com/repos/openaustralia/publicwhip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openaustralia/publicwhip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openaustralia/publicwhip/git/refs{/sha}","trees_url":"https://api.github.com/repos/openaustralia/publicwhip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openaustralia/publicwhip/statuses/{sha}","languages_url":"https://api.github.com/repos/openaustralia/publicwhip/languages","stargazers_url":"https://api.github.com/repos/openaustralia/publicwhip/stargazers","contributors_url":"https://api.github.com/repos/openaustralia/publicwhip/contributors","subscribers_url":"https://api.github.com/repos/openaustralia/publicwhip/subscribers","subscription_url":"https://api.github.com/repos/openaustralia/publicwhip/subscription","commits_url":"https://api.github.com/repos/openaustralia/publicwhip/commits{/sha}","git_commits_url":"https://api.github.com/repos/openaustralia/publicwhip/git/commits{/sha}","comments_url":"https://api.github.com/repos/openaustralia/publicwhip/comments{/number}","issue_comment_url":"https://api.github.com/repos/openaustralia/publicwhip/issues/comments/{number}","contents_url":"https://api.github.com/repos/openaustralia/publicwhip/contents/{+path}","compare_url":"https://api.github.com/repos/openaustralia/publicwhip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openaustralia/publicwhip/merges","archive_url":"https://api.github.com/repos/openaustralia/publicwhip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openaustralia/publicwhip/downloads","issues_url":"https://api.github.com/repos/openaustralia/publicwhip/issues{/number}","pulls_url":"https://api.github.com/repos/openaustralia/publicwhip/pulls{/number}","milestones_url":"https://api.github.com/repos/openaustralia/publicwhip/milestones{/number}","notifications_url":"https://api.github.com/repos/openaustralia/publicwhip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openaustralia/publicwhip/labels{/name}","releases_url":"https://api.github.com/repos/openaustralia/publicwhip/releases{/id}","created_at":"2013-04-26T01:23:57Z","updated_at":"2014-09-04T04:38:22Z","pushed_at":"2014-09-20T07:15:06Z","git_url":"git://github.com/openaustralia/publicwhip.git","ssh_url":"git@github.com:openaustralia/publicwhip.git","clone_url":"https://github.com/openaustralia/publicwhip.git","svn_url":"https://github.com/openaustralia/publicwhip","homepage":"","size":227776,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":141,"forks":5,"open_issues":141,"watchers":8,"default_branch":"test"}},"_links":{"self":{"href":"https://api.github.com/repos/openaustralia/publicwhip/pulls/526"},"html":{"href":"https://github.com/openaustralia/publicwhip/pull/526"},"issue":{"href":"https://api.github.com/repos/openaustralia/publicwhip/issues/526"},"comments":{"href":"https://api.github.com/repos/openaustralia/publicwhip/issues/526/comments"},"review_comments":{"href":"https://api.github.com/repos/openaustralia/publicwhip/pulls/526/comments"},"review_comment":{"href":"https://api.github.com/repos/openaustralia/publicwhip/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/openaustralia/publicwhip/pulls/526/commits"},"statuses":{"href":"https://api.github.com/repos/openaustralia/publicwhip/statuses/0d1f847de6b740006176a7f9cfd023e08a467843"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":20,"changed_files":10}}