{"action":"opened","number":41,"pull_request":{"url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/41","id":285885140,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg1ODg1MTQw","html_url":"https://github.com/LBHackney-IT/report-a-defect/pull/41","diff_url":"https://github.com/LBHackney-IT/report-a-defect/pull/41.diff","patch_url":"https://github.com/LBHackney-IT/report-a-defect/pull/41.patch","issue_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/41","number":41,"state":"open","locked":false,"title":"[38] Send defect email to contractor","user":{"login":"tahb","id":912473,"node_id":"MDQ6VXNlcjkxMjQ3Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/912473?v=4","gravatar_id":"","url":"https://api.github.com/users/tahb","html_url":"https://github.com/tahb","followers_url":"https://api.github.com/users/tahb/followers","following_url":"https://api.github.com/users/tahb/following{/other_user}","gists_url":"https://api.github.com/users/tahb/gists{/gist_id}","starred_url":"https://api.github.com/users/tahb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahb/subscriptions","organizations_url":"https://api.github.com/users/tahb/orgs","repos_url":"https://api.github.com/users/tahb/repos","events_url":"https://api.github.com/users/tahb/events{/privacy}","received_events_url":"https://api.github.com/users/tahb/received_events","type":"User","site_admin":false},"body":"## Changes in this PR:\r\n- after the creation of a defect, a copy of the information is forwarded to the assigned contractor\r\n- track a custom event to record that it's been sent to Notify, and show this event history simply back to the agent\r\n- emails being sent through GOV.UK Notify and in development will only be sent if the email address is the same as a Notify team member\r\n- we aren't collecting the 'reporting officer' as we only have 1 user so this is fixed\r\n- we aren't dealing with communal defects yet so 'Property' is hardcoded\r\n- document the decision to use Notify\r\n\r\n## Screenshots of UI changes:\r\n\r\n![Screenshot 2019-06-06 at 17 38 35](https://user-images.githubusercontent.com/912473/59050423-32262f00-8882-11e9-88cd-6bb97ce26dd5.png)\r\n![Screenshot 2019-06-06 at 17 39 02](https://user-images.githubusercontent.com/912473/59050425-32bec580-8882-11e9-9ea0-df7c5eb3cd5a.png)\r\n","created_at":"2019-06-06T16:43:32Z","updated_at":"2019-06-06T16:43:32Z","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/LBHackney-IT/report-a-defect/pulls/41/commits","review_comments_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/41/comments","review_comment_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/41/comments","statuses_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/statuses/e758513de4db79ef6a334d286e38650625d03da7","head":{"label":"LBHackney-IT:feature/38-send-defect-email-to-contractor","ref":"feature/38-send-defect-email-to-contractor","sha":"e758513de4db79ef6a334d286e38650625d03da7","user":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"repo":{"id":185581758,"node_id":"MDEwOlJlcG9zaXRvcnkxODU1ODE3NTg=","name":"report-a-defect","full_name":"LBHackney-IT/report-a-defect","private":false,"owner":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LBHackney-IT/report-a-defect","description":"Raising and managing defects in new build properties. Defects are different from repairs.","fork":false,"url":"https://api.github.com/repos/LBHackney-IT/report-a-defect","forks_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/forks","keys_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/teams","hooks_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/hooks","issue_events_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/events{/number}","events_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/events","assignees_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/assignees{/user}","branches_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/branches{/branch}","tags_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/tags","blobs_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/refs{/sha}","trees_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/statuses/{sha}","languages_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/languages","stargazers_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/stargazers","contributors_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/contributors","subscribers_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/subscribers","subscription_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/subscription","commits_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/commits{/sha}","git_commits_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/commits{/sha}","comments_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/comments{/number}","issue_comment_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/comments{/number}","contents_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/contents/{+path}","compare_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/merges","archive_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/downloads","issues_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues{/number}","pulls_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls{/number}","milestones_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/milestones{/number}","notifications_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/labels{/name}","releases_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/releases{/id}","deployments_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/deployments","created_at":"2019-05-08T10:10:57Z","updated_at":"2019-06-06T10:25:50Z","pushed_at":"2019-06-06T16:37:01Z","git_url":"git://github.com/LBHackney-IT/report-a-defect.git","ssh_url":"git@github.com:LBHackney-IT/report-a-defect.git","clone_url":"https://github.com/LBHackney-IT/report-a-defect.git","svn_url":"https://github.com/LBHackney-IT/report-a-defect","homepage":"","size":820,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"LBHackney-IT:develop","ref":"develop","sha":"d1e9953febd865005084c946ee55d7b65a7b264d","user":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"repo":{"id":185581758,"node_id":"MDEwOlJlcG9zaXRvcnkxODU1ODE3NTg=","name":"report-a-defect","full_name":"LBHackney-IT/report-a-defect","private":false,"owner":{"login":"LBHackney-IT","id":29410061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NDEwMDYx","avatar_url":"https://avatars2.githubusercontent.com/u/29410061?v=4","gravatar_id":"","url":"https://api.github.com/users/LBHackney-IT","html_url":"https://github.com/LBHackney-IT","followers_url":"https://api.github.com/users/LBHackney-IT/followers","following_url":"https://api.github.com/users/LBHackney-IT/following{/other_user}","gists_url":"https://api.github.com/users/LBHackney-IT/gists{/gist_id}","starred_url":"https://api.github.com/users/LBHackney-IT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBHackney-IT/subscriptions","organizations_url":"https://api.github.com/users/LBHackney-IT/orgs","repos_url":"https://api.github.com/users/LBHackney-IT/repos","events_url":"https://api.github.com/users/LBHackney-IT/events{/privacy}","received_events_url":"https://api.github.com/users/LBHackney-IT/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LBHackney-IT/report-a-defect","description":"Raising and managing defects in new build properties. Defects are different from repairs.","fork":false,"url":"https://api.github.com/repos/LBHackney-IT/report-a-defect","forks_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/forks","keys_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/teams","hooks_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/hooks","issue_events_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/events{/number}","events_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/events","assignees_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/assignees{/user}","branches_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/branches{/branch}","tags_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/tags","blobs_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/refs{/sha}","trees_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/statuses/{sha}","languages_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/languages","stargazers_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/stargazers","contributors_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/contributors","subscribers_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/subscribers","subscription_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/subscription","commits_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/commits{/sha}","git_commits_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/git/commits{/sha}","comments_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/comments{/number}","issue_comment_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/comments{/number}","contents_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/contents/{+path}","compare_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/merges","archive_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/downloads","issues_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues{/number}","pulls_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls{/number}","milestones_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/milestones{/number}","notifications_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/labels{/name}","releases_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/releases{/id}","deployments_url":"https://api.github.com/repos/LBHackney-IT/report-a-defect/deployments","created_at":"2019-05-08T10:10:57Z","updated_at":"2019-06-06T10:25:50Z","pushed_at":"2019-06-06T16:37:01Z","git_url":"git://github.com/LBHackney-IT/report-a-defect.git","ssh_url":"git@github.com:LBHackney-IT/report-a-defect.git","clone_url":"https://github.com/LBHackney-IT/report-a-defect.git","svn_url":"https://github.com/LBHackney-IT/report-a-defect","homepage":"","size":820,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/41"},"html":{"href":"https://github.com/LBHackney-IT/report-a-defect/pull/41"},"issue":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/41"},"comments":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/LBHackney-IT/report-a-defect/statuses/e758513de4db79ef6a334d286e38650625d03da7"}},"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":8,"additions":302,"deletions":7,"changed_files":22}}
{"actor":{"display_login":"tahb"}}