{"action":"created","issue":{"url":"https://api.github.com/repos/Clever/who-is-who/issues/8","labels_url":"https://api.github.com/repos/Clever/who-is-who/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Clever/who-is-who/issues/8/comments","events_url":"https://api.github.com/repos/Clever/who-is-who/issues/8/events","html_url":"https://github.com/Clever/who-is-who/pull/8","id":104354869,"number":8,"title":"Sync utility - GetUsernameEmailPair","user":{"login":"peternga","id":3036591,"avatar_url":"https://avatars.githubusercontent.com/u/3036591?v=3","gravatar_id":"","url":"https://api.github.com/users/peternga","html_url":"https://github.com/peternga","followers_url":"https://api.github.com/users/peternga/followers","following_url":"https://api.github.com/users/peternga/following{/other_user}","gists_url":"https://api.github.com/users/peternga/gists{/gist_id}","starred_url":"https://api.github.com/users/peternga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternga/subscriptions","organizations_url":"https://api.github.com/users/peternga/orgs","repos_url":"https://api.github.com/users/peternga/repos","events_url":"https://api.github.com/users/peternga/events{/privacy}","received_events_url":"https://api.github.com/users/peternga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"natebrennand","id":2801090,"avatar_url":"https://avatars.githubusercontent.com/u/2801090?v=3","gravatar_id":"","url":"https://api.github.com/users/natebrennand","html_url":"https://github.com/natebrennand","followers_url":"https://api.github.com/users/natebrennand/followers","following_url":"https://api.github.com/users/natebrennand/following{/other_user}","gists_url":"https://api.github.com/users/natebrennand/gists{/gist_id}","starred_url":"https://api.github.com/users/natebrennand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebrennand/subscriptions","organizations_url":"https://api.github.com/users/natebrennand/orgs","repos_url":"https://api.github.com/users/natebrennand/repos","events_url":"https://api.github.com/users/natebrennand/events{/privacy}","received_events_url":"https://api.github.com/users/natebrennand/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-09-01T21:06:46Z","updated_at":"2015-09-01T21:46:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Clever/who-is-who/pulls/8","html_url":"https://github.com/Clever/who-is-who/pull/8","diff_url":"https://github.com/Clever/who-is-who/pull/8.diff","patch_url":"https://github.com/Clever/who-is-who/pull/8.patch"},"body":"Add new function to InfoSource interface: GetUsernameEmailPair\r\n\r\nCurrently only implemented for GitHub service -- not implemented for AWS and Slack services. GitHub service will use the GitHub API Token in caller's env to find user name and get a list of email addresses associated with that token. If the email address is in the clever.com domain, it will return that as the email pairing.\r\n\r\nAssumes that GitHub API Token and AWS Key/Secret are configured as env variables on caller's env. Also assumes we only want to get the email address in the domain provided. If there are multiple email addresses associated with a domain, there is no guarantee which one will be returned."},"comment":{"url":"https://api.github.com/repos/Clever/who-is-who/issues/comments/136872786","html_url":"https://github.com/Clever/who-is-who/pull/8#issuecomment-136872786","issue_url":"https://api.github.com/repos/Clever/who-is-who/issues/8","id":136872786,"user":{"login":"natebrennand","id":2801090,"avatar_url":"https://avatars.githubusercontent.com/u/2801090?v=3","gravatar_id":"","url":"https://api.github.com/users/natebrennand","html_url":"https://github.com/natebrennand","followers_url":"https://api.github.com/users/natebrennand/followers","following_url":"https://api.github.com/users/natebrennand/following{/other_user}","gists_url":"https://api.github.com/users/natebrennand/gists{/gist_id}","starred_url":"https://api.github.com/users/natebrennand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebrennand/subscriptions","organizations_url":"https://api.github.com/users/natebrennand/orgs","repos_url":"https://api.github.com/users/natebrennand/repos","events_url":"https://api.github.com/users/natebrennand/events{/privacy}","received_events_url":"https://api.github.com/users/natebrennand/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T21:46:51Z","updated_at":"2015-09-01T21:46:51Z","body":"I think this could be a lot simpler with a python/bash script and adding a `PATCH` endpoint to the server. In any case it shouldn't be altering the interface of `InfoSource` given that we only call it on Github."}}