payload: {"action":"closed","number":923,"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/923","id":287969946,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg3OTY5OTQ2","html_url":"https://github.com/alphagov/govuk_publishing_components/pull/923","diff_url":"https://github.com/alphagov/govuk_publishing_components/pull/923.diff","patch_url":"https://github.com/alphagov/govuk_publishing_components/pull/923.patch","issue_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/923","number":923,"state":"closed","locked":false,"title":"Delete cookies when a user remove consent","user":{"login":"vanitabarrett","id":29889908,"node_id":"MDQ6VXNlcjI5ODg5OTA4","avatar_url":"https://avatars3.githubusercontent.com/u/29889908?v=4","gravatar_id":"","url":"https://api.github.com/users/vanitabarrett","html_url":"https://github.com/vanitabarrett","followers_url":"https://api.github.com/users/vanitabarrett/followers","following_url":"https://api.github.com/users/vanitabarrett/following{/other_user}","gists_url":"https://api.github.com/users/vanitabarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/vanitabarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanitabarrett/subscriptions","organizations_url":"https://api.github.com/users/vanitabarrett/orgs","repos_url":"https://api.github.com/users/vanitabarrett/repos","events_url":"https://api.github.com/users/vanitabarrett/events{/privacy}","received_events_url":"https://api.github.com/users/vanitabarrett/received_events","type":"User","site_admin":false},"body":"When a user removes consent for a particular cookie category we need to delete all cookies of that type. For example: if a user removes consent for usage cookies, we want to delete usage cookies for that user.","created_at":"2019-06-13T15:03:54Z","updated_at":"2019-06-17T12:37:39Z","closed_at":"2019-06-17T12:37:39Z","merged_at":"2019-06-17T12:37:39Z","merge_commit_sha":"c50ed104103ee356d274b68622015e9145d4685e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andysellick","id":861310,"node_id":"MDQ6VXNlcjg2MTMxMA==","avatar_url":"https://avatars3.githubusercontent.com/u/861310?v=4","gravatar_id":"","url":"https://api.github.com/users/andysellick","html_url":"https://github.com/andysellick","followers_url":"https://api.github.com/users/andysellick/followers","following_url":"https://api.github.com/users/andysellick/following{/other_user}","gists_url":"https://api.github.com/users/andysellick/gists{/gist_id}","starred_url":"https://api.github.com/users/andysellick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andysellick/subscriptions","organizations_url":"https://api.github.com/users/andysellick/orgs","repos_url":"https://api.github.com/users/andysellick/repos","events_url":"https://api.github.com/users/andysellick/events{/privacy}","received_events_url":"https://api.github.com/users/andysellick/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/923/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/923/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/923/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/00231cbea403c6e26c69cbd5b3a8864a299a5a13","head":{"label":"alphagov:new-ga-honors-consent","ref":"new-ga-honors-consent","sha":"00231cbea403c6e26c69cbd5b3a8864a299a5a13","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":97020666,"node_id":"MDEwOlJlcG9zaXRvcnk5NzAyMDY2Ng==","name":"govuk_publishing_components","full_name":"alphagov/govuk_publishing_components","private":false,"owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alphagov/govuk_publishing_components","description":"A gem to document and distribute components in GOV.UK frontend applications","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_publishing_components","forks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/deployments","created_at":"2017-07-12T14:59:27Z","updated_at":"2019-06-17T12:17:47Z","pushed_at":"2019-06-17T12:37:39Z","git_url":"git://github.com/alphagov/govuk_publishing_components.git","ssh_url":"git@github.com:alphagov/govuk_publishing_components.git","clone_url":"https://github.com/alphagov/govuk_publishing_components.git","svn_url":"https://github.com/alphagov/govuk_publishing_components","homepage":"https://govuk-publishing-components.herokuapp.com/component-guide","size":13322,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":27,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":27,"watchers":11,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"926c889277fd692efca1daf05279e4f5efe888c3","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":97020666,"node_id":"MDEwOlJlcG9zaXRvcnk5NzAyMDY2Ng==","name":"govuk_publishing_components","full_name":"alphagov/govuk_publishing_components","private":false,"owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alphagov/govuk_publishing_components","description":"A gem to document and distribute components in GOV.UK frontend applications","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_publishing_components","forks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/deployments","created_at":"2017-07-12T14:59:27Z","updated_at":"2019-06-17T12:17:47Z","pushed_at":"2019-06-17T12:37:39Z","git_url":"git://github.com/alphagov/govuk_publishing_components.git","ssh_url":"git@github.com:alphagov/govuk_publishing_components.git","clone_url":"https://github.com/alphagov/govuk_publishing_components.git","svn_url":"https://github.com/alphagov/govuk_publishing_components","homepage":"https://govuk-publishing-components.herokuapp.com/component-guide","size":13322,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":27,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":27,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/923"},"html":{"href":"https://github.com/alphagov/govuk_publishing_components/pull/923"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/923"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/923/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/923/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/923/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/00231cbea403c6e26c69cbd5b3a8864a299a5a13"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"vanitabarrett","id":29889908,"node_id":"MDQ6VXNlcjI5ODg5OTA4","avatar_url":"https://avatars3.githubusercontent.com/u/29889908?v=4","gravatar_id":"","url":"https://api.github.com/users/vanitabarrett","html_url":"https://github.com/vanitabarrett","followers_url":"https://api.github.com/users/vanitabarrett/followers","following_url":"https://api.github.com/users/vanitabarrett/following{/other_user}","gists_url":"https://api.github.com/users/vanitabarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/vanitabarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanitabarrett/subscriptions","organizations_url":"https://api.github.com/users/vanitabarrett/orgs","repos_url":"https://api.github.com/users/vanitabarrett/repos","events_url":"https://api.github.com/users/vanitabarrett/events{/privacy}","received_events_url":"https://api.github.com/users/vanitabarrett/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":4,"additions":148,"deletions":12,"changed_files":3}}
other: {"actor":{"display_login":"vanitabarrett"}}