{"action":"opened","number":337,"pull_request":{"url":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/337","id":115003459,"html_url":"https://github.com/processing/p5.js-web-editor/pull/337","diff_url":"https://github.com/processing/p5.js-web-editor/pull/337.diff","patch_url":"https://github.com/processing/p5.js-web-editor/pull/337.patch","issue_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/337","number":337,"state":"open","locked":false,"title":"Search for existing user account using Github emails","user":{"login":"andrewn","id":1762,"avatar_url":"https://avatars3.githubusercontent.com/u/1762?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewn","html_url":"https://github.com/andrewn","followers_url":"https://api.github.com/users/andrewn/followers","following_url":"https://api.github.com/users/andrewn/following{/other_user}","gists_url":"https://api.github.com/users/andrewn/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewn/subscriptions","organizations_url":"https://api.github.com/users/andrewn/orgs","repos_url":"https://api.github.com/users/andrewn/repos","events_url":"https://api.github.com/users/andrewn/events{/privacy}","received_events_url":"https://api.github.com/users/andrewn/received_events","type":"User","site_admin":false},"body":"Although I can't reproduce #87 locally,  for me Github login didn't work because my Github email address isn't public and so wasn't returned in the profile data.\r\n\r\nThe `user:email` scope from Github returns the private email addresses associated with the user's account. Each address has a `verified` and `primary` status. We try and find an existing web editor account matching any of the verified email address and if not, use the `primaryEmail` to create a new account.","created_at":"2017-04-09T21:42:50Z","updated_at":"2017-04-09T21:42:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/337/commits","review_comments_url":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/337/comments","review_comment_url":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/337/comments","statuses_url":"https://api.github.com/repos/processing/p5.js-web-editor/statuses/48aaf1f5c0c7d502ee720acbe2e197946394574a","head":{"label":"andrewn:bug/github-login","ref":"bug/github-login","sha":"48aaf1f5c0c7d502ee720acbe2e197946394574a","user":{"login":"andrewn","id":1762,"avatar_url":"https://avatars3.githubusercontent.com/u/1762?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewn","html_url":"https://github.com/andrewn","followers_url":"https://api.github.com/users/andrewn/followers","following_url":"https://api.github.com/users/andrewn/following{/other_user}","gists_url":"https://api.github.com/users/andrewn/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewn/subscriptions","organizations_url":"https://api.github.com/users/andrewn/orgs","repos_url":"https://api.github.com/users/andrewn/repos","events_url":"https://api.github.com/users/andrewn/events{/privacy}","received_events_url":"https://api.github.com/users/andrewn/received_events","type":"User","site_admin":false},"repo":{"id":83526986,"name":"p5.js-web-editor","full_name":"andrewn/p5.js-web-editor","owner":{"login":"andrewn","id":1762,"avatar_url":"https://avatars3.githubusercontent.com/u/1762?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewn","html_url":"https://github.com/andrewn","followers_url":"https://api.github.com/users/andrewn/followers","following_url":"https://api.github.com/users/andrewn/following{/other_user}","gists_url":"https://api.github.com/users/andrewn/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewn/subscriptions","organizations_url":"https://api.github.com/users/andrewn/orgs","repos_url":"https://api.github.com/users/andrewn/repos","events_url":"https://api.github.com/users/andrewn/events{/privacy}","received_events_url":"https://api.github.com/users/andrewn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewn/p5.js-web-editor","description":"In progress p5.js web editor, coming soon.","fork":true,"url":"https://api.github.com/repos/andrewn/p5.js-web-editor","forks_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/forks","keys_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/teams","hooks_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/hooks","issue_events_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/issues/events{/number}","events_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/events","assignees_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/assignees{/user}","branches_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/branches{/branch}","tags_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/tags","blobs_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/languages","stargazers_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/stargazers","contributors_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/contributors","subscribers_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/subscribers","subscription_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/subscription","commits_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/contents/{+path}","compare_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/merges","archive_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/downloads","issues_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/issues{/number}","pulls_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/labels{/name}","releases_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/releases{/id}","deployments_url":"https://api.github.com/repos/andrewn/p5.js-web-editor/deployments","created_at":"2017-03-01T07:45:57Z","updated_at":"2017-03-01T07:45:59Z","pushed_at":"2017-04-09T21:13:19Z","git_url":"git://github.com/andrewn/p5.js-web-editor.git","ssh_url":"git@github.com:andrewn/p5.js-web-editor.git","clone_url":"https://github.com/andrewn/p5.js-web-editor.git","svn_url":"https://github.com/andrewn/p5.js-web-editor","homepage":"https://editor.p5js.org","size":1564,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"processing:master","ref":"master","sha":"6ce8515cf393b6f80f92d3200bba18dc71e48080","user":{"login":"processing","id":1617169,"avatar_url":"https://avatars1.githubusercontent.com/u/1617169?v=3","gravatar_id":"","url":"https://api.github.com/users/processing","html_url":"https://github.com/processing","followers_url":"https://api.github.com/users/processing/followers","following_url":"https://api.github.com/users/processing/following{/other_user}","gists_url":"https://api.github.com/users/processing/gists{/gist_id}","starred_url":"https://api.github.com/users/processing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/processing/subscriptions","organizations_url":"https://api.github.com/users/processing/orgs","repos_url":"https://api.github.com/users/processing/repos","events_url":"https://api.github.com/users/processing/events{/privacy}","received_events_url":"https://api.github.com/users/processing/received_events","type":"Organization","site_admin":false},"repo":{"id":57940487,"name":"p5.js-web-editor","full_name":"processing/p5.js-web-editor","owner":{"login":"processing","id":1617169,"avatar_url":"https://avatars1.githubusercontent.com/u/1617169?v=3","gravatar_id":"","url":"https://api.github.com/users/processing","html_url":"https://github.com/processing","followers_url":"https://api.github.com/users/processing/followers","following_url":"https://api.github.com/users/processing/following{/other_user}","gists_url":"https://api.github.com/users/processing/gists{/gist_id}","starred_url":"https://api.github.com/users/processing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/processing/subscriptions","organizations_url":"https://api.github.com/users/processing/orgs","repos_url":"https://api.github.com/users/processing/repos","events_url":"https://api.github.com/users/processing/events{/privacy}","received_events_url":"https://api.github.com/users/processing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/processing/p5.js-web-editor","description":"In progress p5.js web editor, coming soon.","fork":false,"url":"https://api.github.com/repos/processing/p5.js-web-editor","forks_url":"https://api.github.com/repos/processing/p5.js-web-editor/forks","keys_url":"https://api.github.com/repos/processing/p5.js-web-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/processing/p5.js-web-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/processing/p5.js-web-editor/teams","hooks_url":"https://api.github.com/repos/processing/p5.js-web-editor/hooks","issue_events_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/events{/number}","events_url":"https://api.github.com/repos/processing/p5.js-web-editor/events","assignees_url":"https://api.github.com/repos/processing/p5.js-web-editor/assignees{/user}","branches_url":"https://api.github.com/repos/processing/p5.js-web-editor/branches{/branch}","tags_url":"https://api.github.com/repos/processing/p5.js-web-editor/tags","blobs_url":"https://api.github.com/repos/processing/p5.js-web-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/processing/p5.js-web-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/processing/p5.js-web-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/processing/p5.js-web-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/processing/p5.js-web-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/processing/p5.js-web-editor/languages","stargazers_url":"https://api.github.com/repos/processing/p5.js-web-editor/stargazers","contributors_url":"https://api.github.com/repos/processing/p5.js-web-editor/contributors","subscribers_url":"https://api.github.com/repos/processing/p5.js-web-editor/subscribers","subscription_url":"https://api.github.com/repos/processing/p5.js-web-editor/subscription","commits_url":"https://api.github.com/repos/processing/p5.js-web-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/processing/p5.js-web-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/processing/p5.js-web-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/processing/p5.js-web-editor/contents/{+path}","compare_url":"https://api.github.com/repos/processing/p5.js-web-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/processing/p5.js-web-editor/merges","archive_url":"https://api.github.com/repos/processing/p5.js-web-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/processing/p5.js-web-editor/downloads","issues_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues{/number}","pulls_url":"https://api.github.com/repos/processing/p5.js-web-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/processing/p5.js-web-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/processing/p5.js-web-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/processing/p5.js-web-editor/labels{/name}","releases_url":"https://api.github.com/repos/processing/p5.js-web-editor/releases{/id}","deployments_url":"https://api.github.com/repos/processing/p5.js-web-editor/deployments","created_at":"2016-05-03T04:06:57Z","updated_at":"2017-04-09T07:27:57Z","pushed_at":"2017-04-09T17:04:16Z","git_url":"git://github.com/processing/p5.js-web-editor.git","ssh_url":"git@github.com:processing/p5.js-web-editor.git","clone_url":"https://github.com/processing/p5.js-web-editor.git","svn_url":"https://github.com/processing/p5.js-web-editor","homepage":"https://editor.p5js.org","size":1551,"stargazers_count":106,"watchers_count":106,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":63,"forks":48,"open_issues":63,"watchers":106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/337"},"html":{"href":"https://github.com/processing/p5.js-web-editor/pull/337"},"issue":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/issues/337"},"comments":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/issues/337/comments"},"review_comments":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/337/comments"},"review_comment":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/pulls/337/commits"},"statuses":{"href":"https://api.github.com/repos/processing/p5.js-web-editor/statuses/48aaf1f5c0c7d502ee720acbe2e197946394574a"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":41,"deletions":9,"changed_files":3}}
{"actor":{"display_login":"andrewn"}}