{"action":"created","comment":{"url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/comments/210291237","pull_request_review_id":146473617,"id":210291237,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDI5MTIzNw==","diff_hunk":"@@ -11,3 +11,21 @@ export const vancouver = {\n     dec: ['tues', 'wed'],\n   },\n }\n+\n+export const getEmail = (location = vancouver) => {\n+  if (location && location.email) {\n+    return location.email\n+  }\n+}\n+\n+export const getEmailParts = (location = vancouver) => {\n+  const email = getEmail(location)\n+  let split = email.split('@')\n+  return split\n+}","path":"web/src/locations/vancouver.js","position":15,"original_position":15,"commit_id":"b167a81d243e0c661aef62ba3554b7cfc52fb7e8","original_commit_id":"b167a81d243e0c661aef62ba3554b7cfc52fb7e8","user":{"login":"timarney","id":62242,"node_id":"MDQ6VXNlcjYyMjQy","avatar_url":"https://avatars2.githubusercontent.com/u/62242?v=4","gravatar_id":"","url":"https://api.github.com/users/timarney","html_url":"https://github.com/timarney","followers_url":"https://api.github.com/users/timarney/followers","following_url":"https://api.github.com/users/timarney/following{/other_user}","gists_url":"https://api.github.com/users/timarney/gists{/gist_id}","starred_url":"https://api.github.com/users/timarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timarney/subscriptions","organizations_url":"https://api.github.com/users/timarney/orgs","repos_url":"https://api.github.com/users/timarney/repos","events_url":"https://api.github.com/users/timarney/events{/privacy}","received_events_url":"https://api.github.com/users/timarney/received_events","type":"User","site_admin":false},"body":"Ha - didn't pick up on what was happening here until the tests failed than notices the split.","created_at":"2018-08-15T14:40:58Z","updated_at":"2018-08-15T14:40:58Z","html_url":"https://github.com/cds-snc/ircc-rescheduler/pull/367#discussion_r210291237","pull_request_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/comments/210291237"},"html":{"href":"https://github.com/cds-snc/ircc-rescheduler/pull/367#discussion_r210291237"},"pull_request":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367"}},"in_reply_to_id":210281102},"pull_request":{"url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367","id":208562463,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NTYyNDYz","html_url":"https://github.com/cds-snc/ircc-rescheduler/pull/367","diff_url":"https://github.com/cds-snc/ircc-rescheduler/pull/367.diff","patch_url":"https://github.com/cds-snc/ircc-rescheduler/pull/367.patch","issue_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/367","number":367,"state":"open","locked":false,"title":"Use location object for email and phone across the app","user":{"login":"timarney","id":62242,"node_id":"MDQ6VXNlcjYyMjQy","avatar_url":"https://avatars2.githubusercontent.com/u/62242?v=4","gravatar_id":"","url":"https://api.github.com/users/timarney","html_url":"https://github.com/timarney","followers_url":"https://api.github.com/users/timarney/followers","following_url":"https://api.github.com/users/timarney/following{/other_user}","gists_url":"https://api.github.com/users/timarney/gists{/gist_id}","starred_url":"https://api.github.com/users/timarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timarney/subscriptions","organizations_url":"https://api.github.com/users/timarney/orgs","repos_url":"https://api.github.com/users/timarney/repos","events_url":"https://api.github.com/users/timarney/events{/privacy}","received_events_url":"https://api.github.com/users/timarney/received_events","type":"User","site_admin":false},"body":"This updates moves from using hardcoded values for email and phone to use the location file / object.\r\n\r\nFor now a couple of utility methods (getEmail, getPhone) have been added to that file as well.  Those will get moved out once we determine how we're moving forward with other locations.","created_at":"2018-08-15T13:28:57Z","updated_at":"2018-08-15T14:40:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f868a3622e53b2fd16f87c9116469fd0a42b819","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367/commits","review_comments_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367/comments","review_comment_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/367/comments","statuses_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/statuses/b167a81d243e0c661aef62ba3554b7cfc52fb7e8","head":{"label":"cds-snc:loc-email-phone","ref":"loc-email-phone","sha":"b167a81d243e0c661aef62ba3554b7cfc52fb7e8","user":{"login":"cds-snc","id":30166251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTY2MjUx","avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"repo":{"id":127961062,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc5NjEwNjI=","name":"ircc-rescheduler","full_name":"cds-snc/ircc-rescheduler","owner":{"login":"cds-snc","id":30166251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTY2MjUx","avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cds-snc/ircc-rescheduler","description":"🙅🗓","fork":false,"url":"https://api.github.com/repos/cds-snc/ircc-rescheduler","forks_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/forks","keys_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/teams","hooks_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/hooks","issue_events_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/events{/number}","events_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/events","assignees_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/assignees{/user}","branches_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/branches{/branch}","tags_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/tags","blobs_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/languages","stargazers_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/stargazers","contributors_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/contributors","subscribers_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/subscribers","subscription_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/subscription","commits_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/contents/{+path}","compare_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/merges","archive_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/downloads","issues_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues{/number}","pulls_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/labels{/name}","releases_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/releases{/id}","deployments_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/deployments","created_at":"2018-04-03T19:52:25Z","updated_at":"2018-08-15T14:39:48Z","pushed_at":"2018-08-15T14:39:50Z","git_url":"git://github.com/cds-snc/ircc-rescheduler.git","ssh_url":"git@github.com:cds-snc/ircc-rescheduler.git","clone_url":"https://github.com/cds-snc/ircc-rescheduler.git","svn_url":"https://github.com/cds-snc/ircc-rescheduler","homepage":"https://rescheduler-dev.cds-snc.ca/","size":3895,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":9,"watchers":17,"default_branch":"master"}},"base":{"label":"cds-snc:master","ref":"master","sha":"c6ef511a0d76fbed52d29dc18d3448c0ee6ca3b6","user":{"login":"cds-snc","id":30166251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTY2MjUx","avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"repo":{"id":127961062,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc5NjEwNjI=","name":"ircc-rescheduler","full_name":"cds-snc/ircc-rescheduler","owner":{"login":"cds-snc","id":30166251,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTY2MjUx","avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cds-snc/ircc-rescheduler","description":"🙅🗓","fork":false,"url":"https://api.github.com/repos/cds-snc/ircc-rescheduler","forks_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/forks","keys_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/teams","hooks_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/hooks","issue_events_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/events{/number}","events_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/events","assignees_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/assignees{/user}","branches_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/branches{/branch}","tags_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/tags","blobs_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/statuses/{sha}","languages_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/languages","stargazers_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/stargazers","contributors_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/contributors","subscribers_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/subscribers","subscription_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/subscription","commits_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/contents/{+path}","compare_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/merges","archive_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/downloads","issues_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues{/number}","pulls_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls{/number}","milestones_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/milestones{/number}","notifications_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/labels{/name}","releases_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/releases{/id}","deployments_url":"https://api.github.com/repos/cds-snc/ircc-rescheduler/deployments","created_at":"2018-04-03T19:52:25Z","updated_at":"2018-08-15T14:39:48Z","pushed_at":"2018-08-15T14:39:50Z","git_url":"git://github.com/cds-snc/ircc-rescheduler.git","ssh_url":"git@github.com:cds-snc/ircc-rescheduler.git","clone_url":"https://github.com/cds-snc/ircc-rescheduler.git","svn_url":"https://github.com/cds-snc/ircc-rescheduler","homepage":"https://rescheduler-dev.cds-snc.ca/","size":3895,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":9,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367"},"html":{"href":"https://github.com/cds-snc/ircc-rescheduler/pull/367"},"issue":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/367"},"comments":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/issues/367/comments"},"review_comments":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367/comments"},"review_comment":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/pulls/367/commits"},"statuses":{"href":"https://api.github.com/repos/cds-snc/ircc-rescheduler/statuses/b167a81d243e0c661aef62ba3554b7cfc52fb7e8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"timarney"}}