{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-core/issues/555","repository_url":"https://api.github.com/repos/travis-ci/travis-core","labels_url":"https://api.github.com/repos/travis-ci/travis-core/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-core/issues/555/comments","events_url":"https://api.github.com/repos/travis-ci/travis-core/issues/555/events","html_url":"https://github.com/travis-ci/travis-core/pull/555","id":159062500,"number":555,"title":"Remove old email addresses from user data","user":{"login":"trmcami","id":3410890,"avatar_url":"https://avatars.githubusercontent.com/u/3410890?v=3","gravatar_id":"","url":"https://api.github.com/users/trmcami","html_url":"https://github.com/trmcami","followers_url":"https://api.github.com/users/trmcami/followers","following_url":"https://api.github.com/users/trmcami/following{/other_user}","gists_url":"https://api.github.com/users/trmcami/gists{/gist_id}","starred_url":"https://api.github.com/users/trmcami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trmcami/subscriptions","organizations_url":"https://api.github.com/users/trmcami/orgs","repos_url":"https://api.github.com/users/trmcami/repos","events_url":"https://api.github.com/users/trmcami/events{/privacy}","received_events_url":"https://api.github.com/users/trmcami/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"svenfuchs","id":2208,"avatar_url":"https://avatars.githubusercontent.com/u/2208?v=3","gravatar_id":"","url":"https://api.github.com/users/svenfuchs","html_url":"https://github.com/svenfuchs","followers_url":"https://api.github.com/users/svenfuchs/followers","following_url":"https://api.github.com/users/svenfuchs/following{/other_user}","gists_url":"https://api.github.com/users/svenfuchs/gists{/gist_id}","starred_url":"https://api.github.com/users/svenfuchs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenfuchs/subscriptions","organizations_url":"https://api.github.com/users/svenfuchs/orgs","repos_url":"https://api.github.com/users/svenfuchs/repos","events_url":"https://api.github.com/users/svenfuchs/events{/privacy}","received_events_url":"https://api.github.com/users/svenfuchs/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-06-08T01:52:15Z","updated_at":"2016-06-11T17:47:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-core/pulls/555","html_url":"https://github.com/travis-ci/travis-core/pull/555","diff_url":"https://github.com/travis-ci/travis-core/pull/555.diff","patch_url":"https://github.com/travis-ci/travis-core/pull/555.patch"},"body":"This removes the emails that are not present in github anymore from the user data, as requested in https://github.com/travis-ci/travis-ci/issues/3007\r\n\r\nI didn’t touch the code that sets `user.email`, though. It still keeps the email even if the email is not present in github anymore, and may even set it to a non-verified email if the `user.email` is not present and that was the only email retrieved: https://github.com/trmcami/travis-core/blob/remove_old_emails/lib/travis/github/services/sync_user/user_info.rb#L49\r\nI wasn't sure about the side effects of clearing `user.email` - should this be updated too?"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-core/issues/comments/225380072","html_url":"https://github.com/travis-ci/travis-core/pull/555#issuecomment-225380072","issue_url":"https://api.github.com/repos/travis-ci/travis-core/issues/555","id":225380072,"user":{"login":"trmcami","id":3410890,"avatar_url":"https://avatars.githubusercontent.com/u/3410890?v=3","gravatar_id":"","url":"https://api.github.com/users/trmcami","html_url":"https://github.com/trmcami","followers_url":"https://api.github.com/users/trmcami/followers","following_url":"https://api.github.com/users/trmcami/following{/other_user}","gists_url":"https://api.github.com/users/trmcami/gists{/gist_id}","starred_url":"https://api.github.com/users/trmcami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trmcami/subscriptions","organizations_url":"https://api.github.com/users/trmcami/orgs","repos_url":"https://api.github.com/users/trmcami/repos","events_url":"https://api.github.com/users/trmcami/events{/privacy}","received_events_url":"https://api.github.com/users/trmcami/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T17:47:24Z","updated_at":"2016-06-11T17:47:24Z","body":"Oh I didn't know that, thank you for the explanation. Hopefully this change will be useful there, please let me know when you have an answer 😄 "}}
{"actor":{"display_login":"trmcami"}}