payload: {"action":"created","comment":{"url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/comments/276560511","pull_request_review_id":228154243,"id":276560511,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3NjU2MDUxMQ==","diff_hunk":"@@ -58,7 +68,12 @@ chrome.runtime.onMessageExternal.addListener(function(request, sender) {\n     }\n \n     // generate code\n-    copyToClipboard(otp.generate());\n+    var code = otp.generate();\n+\n+    // copy to clipboard\n+    if (!request.action.match(/^copy[A-Z]*/)) {","path":"src/background.js","position":25,"original_position":25,"commit_id":"6cd0065d951cfd23bb65fef80286fd0b6f43092f","original_commit_id":"6cd0065d951cfd23bb65fef80286fd0b6f43092f","user":{"login":"maximbaz","id":1177900,"node_id":"MDQ6VXNlcjExNzc5MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1177900?v=4","gravatar_id":"","url":"https://api.github.com/users/maximbaz","html_url":"https://github.com/maximbaz","followers_url":"https://api.github.com/users/maximbaz/followers","following_url":"https://api.github.com/users/maximbaz/following{/other_user}","gists_url":"https://api.github.com/users/maximbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/maximbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximbaz/subscriptions","organizations_url":"https://api.github.com/users/maximbaz/orgs","repos_url":"https://api.github.com/users/maximbaz/repos","events_url":"https://api.github.com/users/maximbaz/events{/privacy}","received_events_url":"https://api.github.com/users/maximbaz/received_events","type":"User","site_admin":false},"body":"maybe just use \"startsWith\" ?","created_at":"2019-04-18T08:17:38Z","updated_at":"2019-04-18T08:26:50Z","html_url":"https://github.com/browserpass/browserpass-otp/pull/6#discussion_r276560511","pull_request_url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/comments/276560511"},"html":{"href":"https://github.com/browserpass/browserpass-otp/pull/6#discussion_r276560511"},"pull_request":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6","id":271587992,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcxNTg3OTky","html_url":"https://github.com/browserpass/browserpass-otp/pull/6","diff_url":"https://github.com/browserpass/browserpass-otp/pull/6.diff","patch_url":"https://github.com/browserpass/browserpass-otp/pull/6.patch","issue_url":"https://api.github.com/repos/browserpass/browserpass-otp/issues/6","number":6,"state":"open","locked":false,"title":"Check that browserpass isn't using a copy action before using the clipboard","user":{"login":"erayd","id":121486,"node_id":"MDQ6VXNlcjEyMTQ4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/121486?v=4","gravatar_id":"","url":"https://api.github.com/users/erayd","html_url":"https://github.com/erayd","followers_url":"https://api.github.com/users/erayd/followers","following_url":"https://api.github.com/users/erayd/following{/other_user}","gists_url":"https://api.github.com/users/erayd/gists{/gist_id}","starred_url":"https://api.github.com/users/erayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayd/subscriptions","organizations_url":"https://api.github.com/users/erayd/orgs","repos_url":"https://api.github.com/users/erayd/repos","events_url":"https://api.github.com/users/erayd/events{/privacy}","received_events_url":"https://api.github.com/users/erayd/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-04-18T08:01:59Z","updated_at":"2019-04-18T08:26:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b408a23cf118d79b0e27e66bf3ca68f4c8a600c7","assignee":{"login":"erayd","id":121486,"node_id":"MDQ6VXNlcjEyMTQ4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/121486?v=4","gravatar_id":"","url":"https://api.github.com/users/erayd","html_url":"https://github.com/erayd","followers_url":"https://api.github.com/users/erayd/followers","following_url":"https://api.github.com/users/erayd/following{/other_user}","gists_url":"https://api.github.com/users/erayd/gists{/gist_id}","starred_url":"https://api.github.com/users/erayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayd/subscriptions","organizations_url":"https://api.github.com/users/erayd/orgs","repos_url":"https://api.github.com/users/erayd/repos","events_url":"https://api.github.com/users/erayd/events{/privacy}","received_events_url":"https://api.github.com/users/erayd/received_events","type":"User","site_admin":false},"assignees":[{"login":"erayd","id":121486,"node_id":"MDQ6VXNlcjEyMTQ4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/121486?v=4","gravatar_id":"","url":"https://api.github.com/users/erayd","html_url":"https://github.com/erayd","followers_url":"https://api.github.com/users/erayd/followers","following_url":"https://api.github.com/users/erayd/following{/other_user}","gists_url":"https://api.github.com/users/erayd/gists{/gist_id}","starred_url":"https://api.github.com/users/erayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayd/subscriptions","organizations_url":"https://api.github.com/users/erayd/orgs","repos_url":"https://api.github.com/users/erayd/repos","events_url":"https://api.github.com/users/erayd/events{/privacy}","received_events_url":"https://api.github.com/users/erayd/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6/commits","review_comments_url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6/comments","review_comment_url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/browserpass/browserpass-otp/issues/6/comments","statuses_url":"https://api.github.com/repos/browserpass/browserpass-otp/statuses/6cd0065d951cfd23bb65fef80286fd0b6f43092f","head":{"label":"erayd:inspect-action","ref":"inspect-action","sha":"6cd0065d951cfd23bb65fef80286fd0b6f43092f","user":{"login":"erayd","id":121486,"node_id":"MDQ6VXNlcjEyMTQ4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/121486?v=4","gravatar_id":"","url":"https://api.github.com/users/erayd","html_url":"https://github.com/erayd","followers_url":"https://api.github.com/users/erayd/followers","following_url":"https://api.github.com/users/erayd/following{/other_user}","gists_url":"https://api.github.com/users/erayd/gists{/gist_id}","starred_url":"https://api.github.com/users/erayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayd/subscriptions","organizations_url":"https://api.github.com/users/erayd/orgs","repos_url":"https://api.github.com/users/erayd/repos","events_url":"https://api.github.com/users/erayd/events{/privacy}","received_events_url":"https://api.github.com/users/erayd/received_events","type":"User","site_admin":false},"repo":{"id":182043389,"node_id":"MDEwOlJlcG9zaXRvcnkxODIwNDMzODk=","name":"browserpass-otp","full_name":"erayd/browserpass-otp","private":false,"owner":{"login":"erayd","id":121486,"node_id":"MDQ6VXNlcjEyMTQ4Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/121486?v=4","gravatar_id":"","url":"https://api.github.com/users/erayd","html_url":"https://github.com/erayd","followers_url":"https://api.github.com/users/erayd/followers","following_url":"https://api.github.com/users/erayd/following{/other_user}","gists_url":"https://api.github.com/users/erayd/gists{/gist_id}","starred_url":"https://api.github.com/users/erayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erayd/subscriptions","organizations_url":"https://api.github.com/users/erayd/orgs","repos_url":"https://api.github.com/users/erayd/repos","events_url":"https://api.github.com/users/erayd/events{/privacy}","received_events_url":"https://api.github.com/users/erayd/received_events","type":"User","site_admin":false},"html_url":"https://github.com/erayd/browserpass-otp","description":"OTP functionality for browserpass","fork":true,"url":"https://api.github.com/repos/erayd/browserpass-otp","forks_url":"https://api.github.com/repos/erayd/browserpass-otp/forks","keys_url":"https://api.github.com/repos/erayd/browserpass-otp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erayd/browserpass-otp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erayd/browserpass-otp/teams","hooks_url":"https://api.github.com/repos/erayd/browserpass-otp/hooks","issue_events_url":"https://api.github.com/repos/erayd/browserpass-otp/issues/events{/number}","events_url":"https://api.github.com/repos/erayd/browserpass-otp/events","assignees_url":"https://api.github.com/repos/erayd/browserpass-otp/assignees{/user}","branches_url":"https://api.github.com/repos/erayd/browserpass-otp/branches{/branch}","tags_url":"https://api.github.com/repos/erayd/browserpass-otp/tags","blobs_url":"https://api.github.com/repos/erayd/browserpass-otp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erayd/browserpass-otp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erayd/browserpass-otp/git/refs{/sha}","trees_url":"https://api.github.com/repos/erayd/browserpass-otp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erayd/browserpass-otp/statuses/{sha}","languages_url":"https://api.github.com/repos/erayd/browserpass-otp/languages","stargazers_url":"https://api.github.com/repos/erayd/browserpass-otp/stargazers","contributors_url":"https://api.github.com/repos/erayd/browserpass-otp/contributors","subscribers_url":"https://api.github.com/repos/erayd/browserpass-otp/subscribers","subscription_url":"https://api.github.com/repos/erayd/browserpass-otp/subscription","commits_url":"https://api.github.com/repos/erayd/browserpass-otp/commits{/sha}","git_commits_url":"https://api.github.com/repos/erayd/browserpass-otp/git/commits{/sha}","comments_url":"https://api.github.com/repos/erayd/browserpass-otp/comments{/number}","issue_comment_url":"https://api.github.com/repos/erayd/browserpass-otp/issues/comments{/number}","contents_url":"https://api.github.com/repos/erayd/browserpass-otp/contents/{+path}","compare_url":"https://api.github.com/repos/erayd/browserpass-otp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erayd/browserpass-otp/merges","archive_url":"https://api.github.com/repos/erayd/browserpass-otp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erayd/browserpass-otp/downloads","issues_url":"https://api.github.com/repos/erayd/browserpass-otp/issues{/number}","pulls_url":"https://api.github.com/repos/erayd/browserpass-otp/pulls{/number}","milestones_url":"https://api.github.com/repos/erayd/browserpass-otp/milestones{/number}","notifications_url":"https://api.github.com/repos/erayd/browserpass-otp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erayd/browserpass-otp/labels{/name}","releases_url":"https://api.github.com/repos/erayd/browserpass-otp/releases{/id}","deployments_url":"https://api.github.com/repos/erayd/browserpass-otp/deployments","created_at":"2019-04-18T08:00:01Z","updated_at":"2019-04-18T08:00:04Z","pushed_at":"2019-04-18T08:01:15Z","git_url":"git://github.com/erayd/browserpass-otp.git","ssh_url":"git@github.com:erayd/browserpass-otp.git","clone_url":"https://github.com/erayd/browserpass-otp.git","svn_url":"https://github.com/erayd/browserpass-otp","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"browserpass:master","ref":"master","sha":"8f635d86d14060686ded25acfebd7928250fa8bb","user":{"login":"browserpass","id":38192353,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTkyMzUz","avatar_url":"https://avatars3.githubusercontent.com/u/38192353?v=4","gravatar_id":"","url":"https://api.github.com/users/browserpass","html_url":"https://github.com/browserpass","followers_url":"https://api.github.com/users/browserpass/followers","following_url":"https://api.github.com/users/browserpass/following{/other_user}","gists_url":"https://api.github.com/users/browserpass/gists{/gist_id}","starred_url":"https://api.github.com/users/browserpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browserpass/subscriptions","organizations_url":"https://api.github.com/users/browserpass/orgs","repos_url":"https://api.github.com/users/browserpass/repos","events_url":"https://api.github.com/users/browserpass/events{/privacy}","received_events_url":"https://api.github.com/users/browserpass/received_events","type":"Organization","site_admin":false},"repo":{"id":181478971,"node_id":"MDEwOlJlcG9zaXRvcnkxODE0Nzg5NzE=","name":"browserpass-otp","full_name":"browserpass/browserpass-otp","private":false,"owner":{"login":"browserpass","id":38192353,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTkyMzUz","avatar_url":"https://avatars3.githubusercontent.com/u/38192353?v=4","gravatar_id":"","url":"https://api.github.com/users/browserpass","html_url":"https://github.com/browserpass","followers_url":"https://api.github.com/users/browserpass/followers","following_url":"https://api.github.com/users/browserpass/following{/other_user}","gists_url":"https://api.github.com/users/browserpass/gists{/gist_id}","starred_url":"https://api.github.com/users/browserpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browserpass/subscriptions","organizations_url":"https://api.github.com/users/browserpass/orgs","repos_url":"https://api.github.com/users/browserpass/repos","events_url":"https://api.github.com/users/browserpass/events{/privacy}","received_events_url":"https://api.github.com/users/browserpass/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/browserpass/browserpass-otp","description":"OTP functionality for browserpass","fork":false,"url":"https://api.github.com/repos/browserpass/browserpass-otp","forks_url":"https://api.github.com/repos/browserpass/browserpass-otp/forks","keys_url":"https://api.github.com/repos/browserpass/browserpass-otp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/browserpass/browserpass-otp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/browserpass/browserpass-otp/teams","hooks_url":"https://api.github.com/repos/browserpass/browserpass-otp/hooks","issue_events_url":"https://api.github.com/repos/browserpass/browserpass-otp/issues/events{/number}","events_url":"https://api.github.com/repos/browserpass/browserpass-otp/events","assignees_url":"https://api.github.com/repos/browserpass/browserpass-otp/assignees{/user}","branches_url":"https://api.github.com/repos/browserpass/browserpass-otp/branches{/branch}","tags_url":"https://api.github.com/repos/browserpass/browserpass-otp/tags","blobs_url":"https://api.github.com/repos/browserpass/browserpass-otp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/browserpass/browserpass-otp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/browserpass/browserpass-otp/git/refs{/sha}","trees_url":"https://api.github.com/repos/browserpass/browserpass-otp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/browserpass/browserpass-otp/statuses/{sha}","languages_url":"https://api.github.com/repos/browserpass/browserpass-otp/languages","stargazers_url":"https://api.github.com/repos/browserpass/browserpass-otp/stargazers","contributors_url":"https://api.github.com/repos/browserpass/browserpass-otp/contributors","subscribers_url":"https://api.github.com/repos/browserpass/browserpass-otp/subscribers","subscription_url":"https://api.github.com/repos/browserpass/browserpass-otp/subscription","commits_url":"https://api.github.com/repos/browserpass/browserpass-otp/commits{/sha}","git_commits_url":"https://api.github.com/repos/browserpass/browserpass-otp/git/commits{/sha}","comments_url":"https://api.github.com/repos/browserpass/browserpass-otp/comments{/number}","issue_comment_url":"https://api.github.com/repos/browserpass/browserpass-otp/issues/comments{/number}","contents_url":"https://api.github.com/repos/browserpass/browserpass-otp/contents/{+path}","compare_url":"https://api.github.com/repos/browserpass/browserpass-otp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/browserpass/browserpass-otp/merges","archive_url":"https://api.github.com/repos/browserpass/browserpass-otp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/browserpass/browserpass-otp/downloads","issues_url":"https://api.github.com/repos/browserpass/browserpass-otp/issues{/number}","pulls_url":"https://api.github.com/repos/browserpass/browserpass-otp/pulls{/number}","milestones_url":"https://api.github.com/repos/browserpass/browserpass-otp/milestones{/number}","notifications_url":"https://api.github.com/repos/browserpass/browserpass-otp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/browserpass/browserpass-otp/labels{/name}","releases_url":"https://api.github.com/repos/browserpass/browserpass-otp/releases{/id}","deployments_url":"https://api.github.com/repos/browserpass/browserpass-otp/deployments","created_at":"2019-04-15T12:09:47Z","updated_at":"2019-04-17T09:19:26Z","pushed_at":"2019-04-18T08:02:00Z","git_url":"git://github.com/browserpass/browserpass-otp.git","ssh_url":"git@github.com:browserpass/browserpass-otp.git","clone_url":"https://github.com/browserpass/browserpass-otp.git","svn_url":"https://github.com/browserpass/browserpass-otp","homepage":null,"size":32,"stargazers_count":7,"watchers_count":7,"language":"Makefile","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":1,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6"},"html":{"href":"https://github.com/browserpass/browserpass-otp/pull/6"},"issue":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/issues/6"},"comments":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/browserpass/browserpass-otp/statuses/6cd0065d951cfd23bb65fef80286fd0b6f43092f"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"maximbaz"}}