{"action":"opened","number":275,"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/275","id":213265024,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMjY1MDI0","html_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/275","diff_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/275.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-scripts/pull/275.patch","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/275","number":275,"state":"open","locked":false,"title":"Handle multiple email addresses in Notify suppliers of awarded briefs script","user":{"login":"lfdebrux","id":503614,"node_id":"MDQ6VXNlcjUwMzYxNA==","avatar_url":"https://avatars3.githubusercontent.com/u/503614?v=4","gravatar_id":"","url":"https://api.github.com/users/lfdebrux","html_url":"https://github.com/lfdebrux","followers_url":"https://api.github.com/users/lfdebrux/followers","following_url":"https://api.github.com/users/lfdebrux/following{/other_user}","gists_url":"https://api.github.com/users/lfdebrux/gists{/gist_id}","starred_url":"https://api.github.com/users/lfdebrux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfdebrux/subscriptions","organizations_url":"https://api.github.com/users/lfdebrux/orgs","repos_url":"https://api.github.com/users/lfdebrux/repos","events_url":"https://api.github.com/users/lfdebrux/events{/privacy}","received_events_url":"https://api.github.com/users/lfdebrux/received_events","type":"User","site_admin":false},"body":"In some cases users have multiple email addresses in their respondToEmailAddress field (see [this ticket](https://trello.com/c/DHDgBuns)).\r\n\r\nThis causes the script to fail to send emails to these users.\r\n\r\nThis PR adds a limited ability to handle strings where there are multiple email addresses seperated by a character such as ';' or '/'. See alphagov/digitalmarketplace-utils#450 for more details on the helper \r\nfunctions used.\r\n","created_at":"2018-09-05T11:48:59Z","updated_at":"2018-09-05T11:48:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/275/commits","review_comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/275/comments","review_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/275/comments","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/f7c265f925a11fa1109ea4fbfe314428e61509cb","head":{"label":"alphagov:ldeb-125-handle-multiple-email-addresses","ref":"ldeb-125-handle-multiple-email-addresses","sha":"f7c265f925a11fa1109ea4fbfe314428e61509cb","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":43547966,"node_id":"MDEwOlJlcG9zaXRvcnk0MzU0Nzk2Ng==","name":"digitalmarketplace-scripts","full_name":"alphagov/digitalmarketplace-scripts","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},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-scripts","description":"Various scripts that run against the Digital Marketplace APIs","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/deployments","created_at":"2015-10-02T10:51:07Z","updated_at":"2018-09-04T07:42:33Z","pushed_at":"2018-09-05T11:47:43Z","git_url":"git://github.com/alphagov/digitalmarketplace-scripts.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-scripts.git","clone_url":"https://github.com/alphagov/digitalmarketplace-scripts.git","svn_url":"https://github.com/alphagov/digitalmarketplace-scripts","homepage":null,"size":936,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"84c0874baef5dea3a72d8702377bd7c7c57a7549","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":43547966,"node_id":"MDEwOlJlcG9zaXRvcnk0MzU0Nzk2Ng==","name":"digitalmarketplace-scripts","full_name":"alphagov/digitalmarketplace-scripts","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},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-scripts","description":"Various scripts that run against the Digital Marketplace APIs","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/deployments","created_at":"2015-10-02T10:51:07Z","updated_at":"2018-09-04T07:42:33Z","pushed_at":"2018-09-05T11:47:43Z","git_url":"git://github.com/alphagov/digitalmarketplace-scripts.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-scripts.git","clone_url":"https://github.com/alphagov/digitalmarketplace-scripts.git","svn_url":"https://github.com/alphagov/digitalmarketplace-scripts","homepage":null,"size":936,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/275"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-scripts/pull/275"},"issue":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/275"},"comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/issues/275/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/275/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/pulls/275/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-scripts/statuses/f7c265f925a11fa1109ea4fbfe314428e61509cb"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":43,"deletions":29,"changed_files":3}}
{"actor":{"display_login":"lfdebrux"}}