{"action":"closed","number":59,"pull_request":{"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/59","id":201569890,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNTY5ODkw","html_url":"https://github.com/DFE-Digital/manage-courses-api/pull/59","diff_url":"https://github.com/DFE-Digital/manage-courses-api/pull/59.diff","patch_url":"https://github.com/DFE-Digital/manage-courses-api/pull/59.patch","issue_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/59","number":59,"state":"closed","locked":false,"title":"Welcome email","user":{"login":"defong","id":470137,"node_id":"MDQ6VXNlcjQ3MDEzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/470137?v=4","gravatar_id":"","url":"https://api.github.com/users/defong","html_url":"https://github.com/defong","followers_url":"https://api.github.com/users/defong/followers","following_url":"https://api.github.com/users/defong/following{/other_user}","gists_url":"https://api.github.com/users/defong/gists{/gist_id}","starred_url":"https://api.github.com/users/defong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defong/subscriptions","organizations_url":"https://api.github.com/users/defong/orgs","repos_url":"https://api.github.com/users/defong/repos","events_url":"https://api.github.com/users/defong/events{/privacy}","received_events_url":"https://api.github.com/users/defong/received_events","type":"User","site_admin":false},"body":"### Context\r\nSending welcome email\r\n\r\n### Changes proposed in this pull request\r\nWhen the user is logged for the first time send a welcome email\r\n\r\n### Guidance to review\r\nhttps://dfedigital.atlassian.net/wiki/spaces/BaT/pages/389349377/Manage+Courses+API\r\n\r\nyou need the following\r\n        `api_key`\r\n        `welcome_template_id`\r\n\r\nAnd a working email address to receive the email.\r\n\r\nomitting the `api_key` will turn off the sending of email ","created_at":"2018-07-16T08:33:51Z","updated_at":"2018-07-17T08:57:56Z","closed_at":"2018-07-17T08:57:56Z","merged_at":"2018-07-17T08:57:56Z","merge_commit_sha":"1060d098b04f8a6d5e7dbb9ccecb6148a507ff09","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/59/commits","review_comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/59/comments","review_comment_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/59/comments","statuses_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/594143aba7f44ab1c5c8ab9948cc3db16b719d2d","head":{"label":"DFE-Digital:welcome-email","ref":"welcome-email","sha":"594143aba7f44ab1c5c8ab9948cc3db16b719d2d","user":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"repo":{"id":136191993,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxOTE5OTM=","name":"manage-courses-api","full_name":"DFE-Digital/manage-courses-api","owner":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DFE-Digital/manage-courses-api","description":null,"fork":false,"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api","forks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/forks","keys_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/events","assignees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/merges","archive_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/deployments","created_at":"2018-06-05T14:44:17Z","updated_at":"2018-07-16T13:36:25Z","pushed_at":"2018-07-17T08:57:56Z","git_url":"git://github.com/DFE-Digital/manage-courses-api.git","ssh_url":"git@github.com:DFE-Digital/manage-courses-api.git","clone_url":"https://github.com/DFE-Digital/manage-courses-api.git","svn_url":"https://github.com/DFE-Digital/manage-courses-api","homepage":null,"size":243,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"DFE-Digital:master","ref":"master","sha":"528dcecaaaa303e6b21bef5ee0d34bc07503b4db","user":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"repo":{"id":136191993,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxOTE5OTM=","name":"manage-courses-api","full_name":"DFE-Digital/manage-courses-api","owner":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DFE-Digital/manage-courses-api","description":null,"fork":false,"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api","forks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/forks","keys_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/events","assignees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/merges","archive_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/deployments","created_at":"2018-06-05T14:44:17Z","updated_at":"2018-07-16T13:36:25Z","pushed_at":"2018-07-17T08:57:56Z","git_url":"git://github.com/DFE-Digital/manage-courses-api.git","ssh_url":"git@github.com:DFE-Digital/manage-courses-api.git","clone_url":"https://github.com/DFE-Digital/manage-courses-api.git","svn_url":"https://github.com/DFE-Digital/manage-courses-api","homepage":null,"size":243,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/59"},"html":{"href":"https://github.com/DFE-Digital/manage-courses-api/pull/59"},"issue":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/59"},"comments":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/594143aba7f44ab1c5c8ab9948cc3db16b719d2d"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"defong","id":470137,"node_id":"MDQ6VXNlcjQ3MDEzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/470137?v=4","gravatar_id":"","url":"https://api.github.com/users/defong","html_url":"https://github.com/defong","followers_url":"https://api.github.com/users/defong/followers","following_url":"https://api.github.com/users/defong/following{/other_user}","gists_url":"https://api.github.com/users/defong/gists{/gist_id}","starred_url":"https://api.github.com/users/defong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defong/subscriptions","organizations_url":"https://api.github.com/users/defong/orgs","repos_url":"https://api.github.com/users/defong/repos","events_url":"https://api.github.com/users/defong/events{/privacy}","received_events_url":"https://api.github.com/users/defong/received_events","type":"User","site_admin":false},"comments":0,"review_comments":1,"maintainer_can_modify":false,"commits":4,"additions":830,"deletions":63,"changed_files":14}}
{"actor":{"display_login":"defong"}}