GitHub PullRequestEvent at 2014-05-15 09:17:38
Repository: popit-api
Actor: struan
Payload: {"action":"closed","number":56,"pull_request":{"url":"https://api.github.com/repos/mysociety/popit-api/pulls/56","id":15878692,"html_url":"https://github.com/mysociety/popit-api/pull/56","diff_url":"https://github.com/mysociety/popit-api/pull/56.diff","patch_url":"https://github.com/mysociety/popit-api/pull/56.patch","issue_url":"https://api.github.com/repos/mysociety/popit-api/issues/56","number":56,"state":"closed","title":"delete an object's memberships when it is deleted","user":{"login":"struan","id":5310,"avatar_url":"https://avatars.githubusercontent.com/u/5310?","gravatar_id":"8d57caffe085fc3ca8ba39079d491c37","url":"https://api.github.com/users/struan","html_url":"https://github.com/struan","followers_url":"https://api.github.com/users/struan/followers","following_url":"https://api.github.com/users/struan/following{/other_user}","gists_url":"https://api.github.com/users/struan/gists{/gist_id}","starred_url":"https://api.github.com/users/struan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struan/subscriptions","organizations_url":"https://api.github.com/users/struan/orgs","repos_url":"https://api.github.com/users/struan/repos","events_url":"https://api.github.com/users/struan/events{/privacy}","received_events_url":"https://api.github.com/users/struan/received_events","type":"User","site_admin":false},"body":"use the post middleware hook to remove memberships that an object has\r\nwhen it's removed and then fire an event on that object in case we need\r\nto know ( which we do for the tests to work ). In order for this to work\r\nwe need to do the membership deleting via async so we know when all the\r\nmembership remove calls have completed","created_at":"2014-05-14T13:45:06Z","updated_at":"2014-05-15T09:17:38Z","closed_at":"2014-05-15T09:17:38Z","merged_at":"2014-05-15T09:17:38Z","merge_commit_sha":"717a7c33307c3bc7ff694b0501c1a61a6a009611","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/popit-api/pulls/56/commits","review_comments_url":"https://api.github.com/repos/mysociety/popit-api/pulls/56/comments","review_comment_url":"https://api.github.com/repos/mysociety/popit-api/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mysociety/popit-api/issues/56/comments","statuses_url":"https://api.github.com/repos/mysociety/popit-api/statuses/1ccaa334ef12d0357c7934d62398b49710affc0f","head":{"label":"mysociety:delete_memberships_with_member","ref":"delete_memberships_with_member","sha":"1ccaa334ef12d0357c7934d62398b49710affc0f","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?","gravatar_id":"cb4e9c9ec6d33ee844baa03bd8f58cd3","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":8774507,"name":"popit-api","full_name":"mysociety/popit-api","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?","gravatar_id":"cb4e9c9ec6d33ee844baa03bd8f58cd3","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/popit-api","description":"PopIt API code - can be used as a standalone PopIt/Popolo API server or embedded in an Express website","fork":false,"url":"https://api.github.com/repos/mysociety/popit-api","forks_url":"https://api.github.com/repos/mysociety/popit-api/forks","keys_url":"https://api.github.com/repos/mysociety/popit-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/popit-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/popit-api/teams","hooks_url":"https://api.github.com/repos/mysociety/popit-api/hooks","issue_events_url":"https://api.github.com/repos/mysociety/popit-api/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/popit-api/events","assignees_url":"https://api.github.com/repos/mysociety/popit-api/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/popit-api/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/popit-api/tags","blobs_url":"https://api.github.com/repos/mysociety/popit-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/popit-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/popit-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/popit-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/popit-api/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/popit-api/languages","stargazers_url":"https://api.github.com/repos/mysociety/popit-api/stargazers","contributors_url":"https://api.github.com/repos/mysociety/popit-api/contributors","subscribers_url":"https://api.github.com/repos/mysociety/popit-api/subscribers","subscription_url":"https://api.github.com/repos/mysociety/popit-api/subscription","commits_url":"https://api.github.com/repos/mysociety/popit-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/popit-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/popit-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/popit-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/mysociety/popit-api/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/popit-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/popit-api/merges","archive_url":"https://api.github.com/repos/mysociety/popit-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/popit-api/downloads","issues_url":"https://api.github.com/repos/mysociety/popit-api/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/popit-api/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/popit-api/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/popit-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/popit-api/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/popit-api/releases{/id}","created_at":"2013-03-14T12:15:34Z","updated_at":"2014-05-15T09:17:38Z","pushed_at":"2014-05-15T09:17:38Z","git_url":"git://github.com/mysociety/popit-api.git","ssh_url":"git@github.com:mysociety/popit-api.git","clone_url":"https://github.com/mysociety/popit-api.git","svn_url":"https://github.com/mysociety/popit-api","homepage":null,"size":2670,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":5,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"1ccaa334ef12d0357c7934d62398b49710affc0f","user":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?","gravatar_id":"cb4e9c9ec6d33ee844baa03bd8f58cd3","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":8774507,"name":"popit-api","full_name":"mysociety/popit-api","owner":{"login":"mysociety","id":141338,"avatar_url":"https://avatars.githubusercontent.com/u/141338?","gravatar_id":"cb4e9c9ec6d33ee844baa03bd8f58cd3","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mysociety/popit-api","description":"PopIt API code - can be used as a standalone PopIt/Popolo API server or embedded in an Express website","fork":false,"url":"https://api.github.com/repos/mysociety/popit-api","forks_url":"https://api.github.com/repos/mysociety/popit-api/forks","keys_url":"https://api.github.com/repos/mysociety/popit-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/popit-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/popit-api/teams","hooks_url":"https://api.github.com/repos/mysociety/popit-api/hooks","issue_events_url":"https://api.github.com/repos/mysociety/popit-api/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/popit-api/events","assignees_url":"https://api.github.com/repos/mysociety/popit-api/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/popit-api/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/popit-api/tags","blobs_url":"https://api.github.com/repos/mysociety/popit-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/popit-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/popit-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/popit-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/popit-api/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/popit-api/languages","stargazers_url":"https://api.github.com/repos/mysociety/popit-api/stargazers","contributors_url":"https://api.github.com/repos/mysociety/popit-api/contributors","subscribers_url":"https://api.github.com/repos/mysociety/popit-api/subscribers","subscription_url":"https://api.github.com/repos/mysociety/popit-api/subscription","commits_url":"https://api.github.com/repos/mysociety/popit-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/popit-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/popit-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/popit-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/mysociety/popit-api/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/popit-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/popit-api/merges","archive_url":"https://api.github.com/repos/mysociety/popit-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/popit-api/downloads","issues_url":"https://api.github.com/repos/mysociety/popit-api/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/popit-api/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/popit-api/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/popit-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/popit-api/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/popit-api/releases{/id}","created_at":"2013-03-14T12:15:34Z","updated_at":"2014-05-15T09:17:38Z","pushed_at":"2014-05-15T09:17:38Z","git_url":"git://github.com/mysociety/popit-api.git","ssh_url":"git@github.com:mysociety/popit-api.git","clone_url":"https://github.com/mysociety/popit-api.git","svn_url":"https://github.com/mysociety/popit-api","homepage":null,"size":2670,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/popit-api/pulls/56"},"html":{"href":"https://github.com/mysociety/popit-api/pull/56"},"issue":{"href":"https://api.github.com/repos/mysociety/popit-api/issues/56"},"comments":{"href":"https://api.github.com/repos/mysociety/popit-api/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/popit-api/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/popit-api/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mysociety/popit-api/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/popit-api/statuses/1ccaa334ef12d0357c7934d62398b49710affc0f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"struan","id":5310,"avatar_url":"https://avatars.githubusercontent.com/u/5310?","gravatar_id":"8d57caffe085fc3ca8ba39079d491c37","url":"https://api.github.com/users/struan","html_url":"https://github.com/struan","followers_url":"https://api.github.com/users/struan/followers","following_url":"https://api.github.com/users/struan/following{/other_user}","gists_url":"https://api.github.com/users/struan/gists{/gist_id}","starred_url":"https://api.github.com/users/struan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/struan/subscriptions","organizations_url":"https://api.github.com/users/struan/orgs","repos_url":"https://api.github.com/users/struan/repos","events_url":"https://api.github.com/users/struan/events{/privacy}","received_events_url":"https://api.github.com/users/struan/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":0,"additions":0,"deletions":0,"changed_files":0}}