{"action":"closed","number":19,"pull_request":{"url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/19","id":57229084,"html_url":"https://github.com/UKTradeInvestment/contact-ukti/pull/19","diff_url":"https://github.com/UKTradeInvestment/contact-ukti/pull/19.diff","patch_url":"https://github.com/UKTradeInvestment/contact-ukti/pull/19.patch","issue_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/19","number":19,"state":"closed","locked":false,"title":"Regional office logic","user":{"login":"teneightfive","id":3327997,"avatar_url":"https://avatars.githubusercontent.com/u/3327997?v=3","gravatar_id":"","url":"https://api.github.com/users/teneightfive","html_url":"https://github.com/teneightfive","followers_url":"https://api.github.com/users/teneightfive/followers","following_url":"https://api.github.com/users/teneightfive/following{/other_user}","gists_url":"https://api.github.com/users/teneightfive/gists{/gist_id}","starred_url":"https://api.github.com/users/teneightfive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teneightfive/subscriptions","organizations_url":"https://api.github.com/users/teneightfive/orgs","repos_url":"https://api.github.com/users/teneightfive/repos","events_url":"https://api.github.com/users/teneightfive/events{/privacy}","received_events_url":"https://api.github.com/users/teneightfive/received_events","type":"User","site_admin":false},"body":"This PR adds logic to send the email to a different email address based on the type of enquiry. \r\n\r\nMain things this does:\r\n* Add contact details for each region\r\n* Add email address locations for enquiry types\r\n* Add [maildev](http://djfarrelly.github.io/MailDev/) to preview emails during development\r\n* Add region finder library","created_at":"2016-01-26T15:52:58Z","updated_at":"2016-01-28T17:34:47Z","closed_at":"2016-01-28T17:34:47Z","merged_at":"2016-01-28T17:34:47Z","merge_commit_sha":"5eb756b29ba6f62696137f3bedd4452493f9f77f","assignee":{"login":"marcofucci","id":178865,"avatar_url":"https://avatars.githubusercontent.com/u/178865?v=3","gravatar_id":"","url":"https://api.github.com/users/marcofucci","html_url":"https://github.com/marcofucci","followers_url":"https://api.github.com/users/marcofucci/followers","following_url":"https://api.github.com/users/marcofucci/following{/other_user}","gists_url":"https://api.github.com/users/marcofucci/gists{/gist_id}","starred_url":"https://api.github.com/users/marcofucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcofucci/subscriptions","organizations_url":"https://api.github.com/users/marcofucci/orgs","repos_url":"https://api.github.com/users/marcofucci/repos","events_url":"https://api.github.com/users/marcofucci/events{/privacy}","received_events_url":"https://api.github.com/users/marcofucci/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/19/commits","review_comments_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/19/comments","review_comment_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/19/comments","statuses_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/statuses/e72804df7a7b756877befc81494feff021b4f110","head":{"label":"UKTradeInvestment:regional-office-logic","ref":"regional-office-logic","sha":"e72804df7a7b756877befc81494feff021b4f110","user":{"login":"UKTradeInvestment","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/UKTradeInvestment","html_url":"https://github.com/UKTradeInvestment","followers_url":"https://api.github.com/users/UKTradeInvestment/followers","following_url":"https://api.github.com/users/UKTradeInvestment/following{/other_user}","gists_url":"https://api.github.com/users/UKTradeInvestment/gists{/gist_id}","starred_url":"https://api.github.com/users/UKTradeInvestment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKTradeInvestment/subscriptions","organizations_url":"https://api.github.com/users/UKTradeInvestment/orgs","repos_url":"https://api.github.com/users/UKTradeInvestment/repos","events_url":"https://api.github.com/users/UKTradeInvestment/events{/privacy}","received_events_url":"https://api.github.com/users/UKTradeInvestment/received_events","type":"Organization","site_admin":false},"repo":{"id":48503135,"name":"contact-ukti","full_name":"UKTradeInvestment/contact-ukti","owner":{"login":"UKTradeInvestment","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/UKTradeInvestment","html_url":"https://github.com/UKTradeInvestment","followers_url":"https://api.github.com/users/UKTradeInvestment/followers","following_url":"https://api.github.com/users/UKTradeInvestment/following{/other_user}","gists_url":"https://api.github.com/users/UKTradeInvestment/gists{/gist_id}","starred_url":"https://api.github.com/users/UKTradeInvestment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKTradeInvestment/subscriptions","organizations_url":"https://api.github.com/users/UKTradeInvestment/orgs","repos_url":"https://api.github.com/users/UKTradeInvestment/repos","events_url":"https://api.github.com/users/UKTradeInvestment/events{/privacy}","received_events_url":"https://api.github.com/users/UKTradeInvestment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKTradeInvestment/contact-ukti","description":"","fork":false,"url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti","forks_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/forks","keys_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/teams","hooks_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/hooks","issue_events_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/events{/number}","events_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/events","assignees_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/assignees{/user}","branches_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/branches{/branch}","tags_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/tags","blobs_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/statuses/{sha}","languages_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/languages","stargazers_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/stargazers","contributors_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/contributors","subscribers_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/subscribers","subscription_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/subscription","commits_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/contents/{+path}","compare_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/merges","archive_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/downloads","issues_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues{/number}","pulls_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls{/number}","milestones_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/milestones{/number}","notifications_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/labels{/name}","releases_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/releases{/id}","deployments_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/deployments","created_at":"2015-12-23T17:37:41Z","updated_at":"2016-01-14T10:59:45Z","pushed_at":"2016-01-28T17:34:47Z","git_url":"git://github.com/UKTradeInvestment/contact-ukti.git","ssh_url":"git@github.com:UKTradeInvestment/contact-ukti.git","clone_url":"https://github.com/UKTradeInvestment/contact-ukti.git","svn_url":"https://github.com/UKTradeInvestment/contact-ukti","homepage":null,"size":859,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"UKTradeInvestment:master","ref":"master","sha":"a0d386ecbf93f38036dc91dc0d667062f5d8b644","user":{"login":"UKTradeInvestment","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/UKTradeInvestment","html_url":"https://github.com/UKTradeInvestment","followers_url":"https://api.github.com/users/UKTradeInvestment/followers","following_url":"https://api.github.com/users/UKTradeInvestment/following{/other_user}","gists_url":"https://api.github.com/users/UKTradeInvestment/gists{/gist_id}","starred_url":"https://api.github.com/users/UKTradeInvestment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKTradeInvestment/subscriptions","organizations_url":"https://api.github.com/users/UKTradeInvestment/orgs","repos_url":"https://api.github.com/users/UKTradeInvestment/repos","events_url":"https://api.github.com/users/UKTradeInvestment/events{/privacy}","received_events_url":"https://api.github.com/users/UKTradeInvestment/received_events","type":"Organization","site_admin":false},"repo":{"id":48503135,"name":"contact-ukti","full_name":"UKTradeInvestment/contact-ukti","owner":{"login":"UKTradeInvestment","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/UKTradeInvestment","html_url":"https://github.com/UKTradeInvestment","followers_url":"https://api.github.com/users/UKTradeInvestment/followers","following_url":"https://api.github.com/users/UKTradeInvestment/following{/other_user}","gists_url":"https://api.github.com/users/UKTradeInvestment/gists{/gist_id}","starred_url":"https://api.github.com/users/UKTradeInvestment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKTradeInvestment/subscriptions","organizations_url":"https://api.github.com/users/UKTradeInvestment/orgs","repos_url":"https://api.github.com/users/UKTradeInvestment/repos","events_url":"https://api.github.com/users/UKTradeInvestment/events{/privacy}","received_events_url":"https://api.github.com/users/UKTradeInvestment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKTradeInvestment/contact-ukti","description":"","fork":false,"url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti","forks_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/forks","keys_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/teams","hooks_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/hooks","issue_events_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/events{/number}","events_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/events","assignees_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/assignees{/user}","branches_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/branches{/branch}","tags_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/tags","blobs_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/statuses/{sha}","languages_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/languages","stargazers_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/stargazers","contributors_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/contributors","subscribers_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/subscribers","subscription_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/subscription","commits_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/contents/{+path}","compare_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/merges","archive_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/downloads","issues_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues{/number}","pulls_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls{/number}","milestones_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/milestones{/number}","notifications_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/labels{/name}","releases_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/releases{/id}","deployments_url":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/deployments","created_at":"2015-12-23T17:37:41Z","updated_at":"2016-01-14T10:59:45Z","pushed_at":"2016-01-28T17:34:47Z","git_url":"git://github.com/UKTradeInvestment/contact-ukti.git","ssh_url":"git@github.com:UKTradeInvestment/contact-ukti.git","clone_url":"https://github.com/UKTradeInvestment/contact-ukti.git","svn_url":"https://github.com/UKTradeInvestment/contact-ukti","homepage":null,"size":859,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/19"},"html":{"href":"https://github.com/UKTradeInvestment/contact-ukti/pull/19"},"issue":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/19"},"comments":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/UKTradeInvestment/contact-ukti/statuses/e72804df7a7b756877befc81494feff021b4f110"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"marcofucci","id":178865,"avatar_url":"https://avatars.githubusercontent.com/u/178865?v=3","gravatar_id":"","url":"https://api.github.com/users/marcofucci","html_url":"https://github.com/marcofucci","followers_url":"https://api.github.com/users/marcofucci/followers","following_url":"https://api.github.com/users/marcofucci/following{/other_user}","gists_url":"https://api.github.com/users/marcofucci/gists{/gist_id}","starred_url":"https://api.github.com/users/marcofucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcofucci/subscriptions","organizations_url":"https://api.github.com/users/marcofucci/orgs","repos_url":"https://api.github.com/users/marcofucci/repos","events_url":"https://api.github.com/users/marcofucci/events{/privacy}","received_events_url":"https://api.github.com/users/marcofucci/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"commits":4,"additions":673,"deletions":138,"changed_files":32}}