{"action":"opened","number":2872,"pull_request":{"url":"https://api.github.com/repos/gitcoinco/web/pulls/2872","id":231756108,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzU2MTA4","html_url":"https://github.com/gitcoinco/web/pull/2872","diff_url":"https://github.com/gitcoinco/web/pull/2872.diff","patch_url":"https://github.com/gitcoinco/web/pull/2872.patch","issue_url":"https://api.github.com/repos/gitcoinco/web/issues/2872","number":2872,"state":"open","locked":false,"title":"Fix rare `is_metamask_approved is not defined` race condition.","user":{"login":"pinkiebell","id":40266861,"node_id":"MDQ6VXNlcjQwMjY2ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/40266861?v=4","gravatar_id":"","url":"https://api.github.com/users/pinkiebell","html_url":"https://github.com/pinkiebell","followers_url":"https://api.github.com/users/pinkiebell/followers","following_url":"https://api.github.com/users/pinkiebell/following{/other_user}","gists_url":"https://api.github.com/users/pinkiebell/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkiebell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkiebell/subscriptions","organizations_url":"https://api.github.com/users/pinkiebell/orgs","repos_url":"https://api.github.com/users/pinkiebell/repos","events_url":"https://api.github.com/users/pinkiebell/events{/privacy}","received_events_url":"https://api.github.com/users/pinkiebell/received_events","type":"User","site_admin":false},"body":"Sometimes, the window's `load` handler get executed in another order\r\nwhich breaks variable lookup.\r\nFix that by explicit declaring `is_metamask_approved` and `is_metamask_unlocked`.\r\n\r\nFixes #2813\r\n","created_at":"2018-11-17T22:42:29Z","updated_at":"2018-11-17T22:42:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gitcoinco/web/pulls/2872/commits","review_comments_url":"https://api.github.com/repos/gitcoinco/web/pulls/2872/comments","review_comment_url":"https://api.github.com/repos/gitcoinco/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gitcoinco/web/issues/2872/comments","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/54d6eb88c7dfbba90e5fdeccc445731fe30ab577","head":{"label":"pinkiebell:fix/2813","ref":"fix/2813","sha":"54d6eb88c7dfbba90e5fdeccc445731fe30ab577","user":{"login":"pinkiebell","id":40266861,"node_id":"MDQ6VXNlcjQwMjY2ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/40266861?v=4","gravatar_id":"","url":"https://api.github.com/users/pinkiebell","html_url":"https://github.com/pinkiebell","followers_url":"https://api.github.com/users/pinkiebell/followers","following_url":"https://api.github.com/users/pinkiebell/following{/other_user}","gists_url":"https://api.github.com/users/pinkiebell/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkiebell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkiebell/subscriptions","organizations_url":"https://api.github.com/users/pinkiebell/orgs","repos_url":"https://api.github.com/users/pinkiebell/repos","events_url":"https://api.github.com/users/pinkiebell/events{/privacy}","received_events_url":"https://api.github.com/users/pinkiebell/received_events","type":"User","site_admin":false},"repo":{"id":138723898,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3MjM4OTg=","name":"web","full_name":"pinkiebell/web","private":false,"owner":{"login":"pinkiebell","id":40266861,"node_id":"MDQ6VXNlcjQwMjY2ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/40266861?v=4","gravatar_id":"","url":"https://api.github.com/users/pinkiebell","html_url":"https://github.com/pinkiebell","followers_url":"https://api.github.com/users/pinkiebell/followers","following_url":"https://api.github.com/users/pinkiebell/following{/other_user}","gists_url":"https://api.github.com/users/pinkiebell/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkiebell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkiebell/subscriptions","organizations_url":"https://api.github.com/users/pinkiebell/orgs","repos_url":"https://api.github.com/users/pinkiebell/repos","events_url":"https://api.github.com/users/pinkiebell/events{/privacy}","received_events_url":"https://api.github.com/users/pinkiebell/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pinkiebell/web","description":"Grow Open Source","fork":true,"url":"https://api.github.com/repos/pinkiebell/web","forks_url":"https://api.github.com/repos/pinkiebell/web/forks","keys_url":"https://api.github.com/repos/pinkiebell/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pinkiebell/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pinkiebell/web/teams","hooks_url":"https://api.github.com/repos/pinkiebell/web/hooks","issue_events_url":"https://api.github.com/repos/pinkiebell/web/issues/events{/number}","events_url":"https://api.github.com/repos/pinkiebell/web/events","assignees_url":"https://api.github.com/repos/pinkiebell/web/assignees{/user}","branches_url":"https://api.github.com/repos/pinkiebell/web/branches{/branch}","tags_url":"https://api.github.com/repos/pinkiebell/web/tags","blobs_url":"https://api.github.com/repos/pinkiebell/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pinkiebell/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pinkiebell/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/pinkiebell/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pinkiebell/web/statuses/{sha}","languages_url":"https://api.github.com/repos/pinkiebell/web/languages","stargazers_url":"https://api.github.com/repos/pinkiebell/web/stargazers","contributors_url":"https://api.github.com/repos/pinkiebell/web/contributors","subscribers_url":"https://api.github.com/repos/pinkiebell/web/subscribers","subscription_url":"https://api.github.com/repos/pinkiebell/web/subscription","commits_url":"https://api.github.com/repos/pinkiebell/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/pinkiebell/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/pinkiebell/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/pinkiebell/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/pinkiebell/web/contents/{+path}","compare_url":"https://api.github.com/repos/pinkiebell/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pinkiebell/web/merges","archive_url":"https://api.github.com/repos/pinkiebell/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pinkiebell/web/downloads","issues_url":"https://api.github.com/repos/pinkiebell/web/issues{/number}","pulls_url":"https://api.github.com/repos/pinkiebell/web/pulls{/number}","milestones_url":"https://api.github.com/repos/pinkiebell/web/milestones{/number}","notifications_url":"https://api.github.com/repos/pinkiebell/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pinkiebell/web/labels{/name}","releases_url":"https://api.github.com/repos/pinkiebell/web/releases{/id}","deployments_url":"https://api.github.com/repos/pinkiebell/web/deployments","created_at":"2018-06-26T10:43:07Z","updated_at":"2018-09-06T22:08:43Z","pushed_at":"2018-11-17T22:42:15Z","git_url":"git://github.com/pinkiebell/web.git","ssh_url":"git@github.com:pinkiebell/web.git","clone_url":"https://github.com/pinkiebell/web.git","svn_url":"https://github.com/pinkiebell/web","homepage":"https://gitcoin.co","size":218079,"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,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gitcoinco:master","ref":"master","sha":"39d23520c270a94af66ad736916381df7f50a2bc","user":{"login":"gitcoinco","id":30044474,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDQ0NDc0","avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"repo":{"id":96767206,"node_id":"MDEwOlJlcG9zaXRvcnk5Njc2NzIwNg==","name":"web","full_name":"gitcoinco/web","private":false,"owner":{"login":"gitcoinco","id":30044474,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDQ0NDc0","avatar_url":"https://avatars1.githubusercontent.com/u/30044474?v=4","gravatar_id":"","url":"https://api.github.com/users/gitcoinco","html_url":"https://github.com/gitcoinco","followers_url":"https://api.github.com/users/gitcoinco/followers","following_url":"https://api.github.com/users/gitcoinco/following{/other_user}","gists_url":"https://api.github.com/users/gitcoinco/gists{/gist_id}","starred_url":"https://api.github.com/users/gitcoinco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitcoinco/subscriptions","organizations_url":"https://api.github.com/users/gitcoinco/orgs","repos_url":"https://api.github.com/users/gitcoinco/repos","events_url":"https://api.github.com/users/gitcoinco/events{/privacy}","received_events_url":"https://api.github.com/users/gitcoinco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/gitcoinco/web","description":"Grow Open Source","fork":false,"url":"https://api.github.com/repos/gitcoinco/web","forks_url":"https://api.github.com/repos/gitcoinco/web/forks","keys_url":"https://api.github.com/repos/gitcoinco/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitcoinco/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitcoinco/web/teams","hooks_url":"https://api.github.com/repos/gitcoinco/web/hooks","issue_events_url":"https://api.github.com/repos/gitcoinco/web/issues/events{/number}","events_url":"https://api.github.com/repos/gitcoinco/web/events","assignees_url":"https://api.github.com/repos/gitcoinco/web/assignees{/user}","branches_url":"https://api.github.com/repos/gitcoinco/web/branches{/branch}","tags_url":"https://api.github.com/repos/gitcoinco/web/tags","blobs_url":"https://api.github.com/repos/gitcoinco/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitcoinco/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitcoinco/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitcoinco/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitcoinco/web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitcoinco/web/languages","stargazers_url":"https://api.github.com/repos/gitcoinco/web/stargazers","contributors_url":"https://api.github.com/repos/gitcoinco/web/contributors","subscribers_url":"https://api.github.com/repos/gitcoinco/web/subscribers","subscription_url":"https://api.github.com/repos/gitcoinco/web/subscription","commits_url":"https://api.github.com/repos/gitcoinco/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitcoinco/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitcoinco/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitcoinco/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitcoinco/web/contents/{+path}","compare_url":"https://api.github.com/repos/gitcoinco/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitcoinco/web/merges","archive_url":"https://api.github.com/repos/gitcoinco/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitcoinco/web/downloads","issues_url":"https://api.github.com/repos/gitcoinco/web/issues{/number}","pulls_url":"https://api.github.com/repos/gitcoinco/web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitcoinco/web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitcoinco/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitcoinco/web/labels{/name}","releases_url":"https://api.github.com/repos/gitcoinco/web/releases{/id}","deployments_url":"https://api.github.com/repos/gitcoinco/web/deployments","created_at":"2017-07-10T10:53:45Z","updated_at":"2018-11-17T22:19:25Z","pushed_at":"2018-11-17T22:31:44Z","git_url":"git://github.com/gitcoinco/web.git","ssh_url":"git@github.com:gitcoinco/web.git","clone_url":"https://github.com/gitcoinco/web.git","svn_url":"https://github.com/gitcoinco/web","homepage":"https://gitcoin.co","size":322545,"stargazers_count":547,"watchers_count":547,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":318,"mirror_url":null,"archived":false,"open_issues_count":750,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":318,"open_issues":750,"watchers":547,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2872"},"html":{"href":"https://github.com/gitcoinco/web/pull/2872"},"issue":{"href":"https://api.github.com/repos/gitcoinco/web/issues/2872"},"comments":{"href":"https://api.github.com/repos/gitcoinco/web/issues/2872/comments"},"review_comments":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2872/comments"},"review_comment":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gitcoinco/web/pulls/2872/commits"},"statuses":{"href":"https://api.github.com/repos/gitcoinco/web/statuses/54d6eb88c7dfbba90e5fdeccc445731fe30ab577"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":7,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"pinkiebell"}}