payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/comments/357844885","pull_request_review_id":332132536,"id":357844885,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1Nzg0NDg4NQ==","diff_hunk":"@@ -0,0 +1,60 @@\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+import ReactDom from 'react-dom';\n+import Clipboard from 'clipboard';\n+\n+function ClipboardButton({ text, disabled }) {\n+  const buttonRef = React.useRef();\n+","path":"lib/components/clipboard-button/index.jsx","position":8,"original_position":8,"commit_id":"3b1eb37bc108adf90f58fb349a08724a71f5e4bb","original_commit_id":"3b1eb37bc108adf90f58fb349a08724a71f5e4bb","user":{"login":"dmsnell","id":5431237,"node_id":"MDQ6VXNlcjU0MzEyMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/5431237?v=4","gravatar_id":"","url":"https://api.github.com/users/dmsnell","html_url":"https://github.com/dmsnell","followers_url":"https://api.github.com/users/dmsnell/followers","following_url":"https://api.github.com/users/dmsnell/following{/other_user}","gists_url":"https://api.github.com/users/dmsnell/gists{/gist_id}","starred_url":"https://api.github.com/users/dmsnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmsnell/subscriptions","organizations_url":"https://api.github.com/users/dmsnell/orgs","repos_url":"https://api.github.com/users/dmsnell/repos","events_url":"https://api.github.com/users/dmsnell/events{/privacy}","received_events_url":"https://api.github.com/users/dmsnell/received_events","type":"User","site_admin":false},"body":"nitpicky here - is there a reason for the extra space?","created_at":"2019-12-13T21:43:36Z","updated_at":"2019-12-13T21:43:36Z","html_url":"https://github.com/Automattic/simplenote-electron/pull/1743#discussion_r357844885","pull_request_url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/comments/357844885"},"html":{"href":"https://github.com/Automattic/simplenote-electron/pull/1743#discussion_r357844885"},"pull_request":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743","id":345350630,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ1MzUwNjMw","html_url":"https://github.com/Automattic/simplenote-electron/pull/1743","diff_url":"https://github.com/Automattic/simplenote-electron/pull/1743.diff","patch_url":"https://github.com/Automattic/simplenote-electron/pull/1743.patch","issue_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues/1743","number":1743,"state":"open","locked":false,"title":"Adds a Clipboard Button component","user":{"login":"belcherj","id":6817400,"node_id":"MDQ6VXNlcjY4MTc0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6817400?v=4","gravatar_id":"","url":"https://api.github.com/users/belcherj","html_url":"https://github.com/belcherj","followers_url":"https://api.github.com/users/belcherj/followers","following_url":"https://api.github.com/users/belcherj/following{/other_user}","gists_url":"https://api.github.com/users/belcherj/gists{/gist_id}","starred_url":"https://api.github.com/users/belcherj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belcherj/subscriptions","organizations_url":"https://api.github.com/users/belcherj/orgs","repos_url":"https://api.github.com/users/belcherj/repos","events_url":"https://api.github.com/users/belcherj/events{/privacy}","received_events_url":"https://api.github.com/users/belcherj/received_events","type":"User","site_admin":false},"body":"### Fix\r\n\r\nCloses: https://github.com/Automattic/simplenote-electron/issues/232\r\n\r\nThe inline button component to copy the publish url was lacking an inidcation\r\nthat the text was copied. Additionally, the current setup was using a copy\r\nmethod that can have issue in some browsers. This commit switches to use of the\r\nclipboard npm repo, moves code into a component, and adds an indication that\r\nthe text was copied.\r\n\r\n### Test\r\n1. Build project\r\n2. Have note that is published\r\n3. Click copy button\r\n4. Observe that text is copied\r\n5. Observe that text of button changes to: \"Copied!\" for 4000ms\r\n\r\n### Review\r\nOnly one developer is required to review these changes, but anyone can perform the review.\r\n\r\n### Release\r\n`RELEASE-NOTES.txt` was updated with:\r\n\r\n- Added indication that publish url has been copied [#1743](https://github.com/Automattic/simplenote-electron/pull/1743)","created_at":"2019-11-25T18:13:30Z","updated_at":"2019-12-13T21:43:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48ca25f7aff79fcd25f3d085ed82f2e847b0170b","assignee":{"login":"belcherj","id":6817400,"node_id":"MDQ6VXNlcjY4MTc0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6817400?v=4","gravatar_id":"","url":"https://api.github.com/users/belcherj","html_url":"https://github.com/belcherj","followers_url":"https://api.github.com/users/belcherj/followers","following_url":"https://api.github.com/users/belcherj/following{/other_user}","gists_url":"https://api.github.com/users/belcherj/gists{/gist_id}","starred_url":"https://api.github.com/users/belcherj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belcherj/subscriptions","organizations_url":"https://api.github.com/users/belcherj/orgs","repos_url":"https://api.github.com/users/belcherj/repos","events_url":"https://api.github.com/users/belcherj/events{/privacy}","received_events_url":"https://api.github.com/users/belcherj/received_events","type":"User","site_admin":false},"assignees":[{"login":"belcherj","id":6817400,"node_id":"MDQ6VXNlcjY4MTc0MDA=","avatar_url":"https://avatars1.githubusercontent.com/u/6817400?v=4","gravatar_id":"","url":"https://api.github.com/users/belcherj","html_url":"https://github.com/belcherj","followers_url":"https://api.github.com/users/belcherj/followers","following_url":"https://api.github.com/users/belcherj/following{/other_user}","gists_url":"https://api.github.com/users/belcherj/gists{/gist_id}","starred_url":"https://api.github.com/users/belcherj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belcherj/subscriptions","organizations_url":"https://api.github.com/users/belcherj/orgs","repos_url":"https://api.github.com/users/belcherj/repos","events_url":"https://api.github.com/users/belcherj/events{/privacy}","received_events_url":"https://api.github.com/users/belcherj/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1343534166,"node_id":"MDU6TGFiZWwxMzQzNTM0MTY2","url":"https://api.github.com/repos/Automattic/simplenote-electron/labels/[status]%20needs%20code%20review","name":"[status] needs code review","color":"fbca04","default":false,"description":""}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743/commits","review_comments_url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743/comments","review_comment_url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues/1743/comments","statuses_url":"https://api.github.com/repos/Automattic/simplenote-electron/statuses/3b1eb37bc108adf90f58fb349a08724a71f5e4bb","head":{"label":"Automattic:add/clipboard-button-component","ref":"add/clipboard-button-component","sha":"3b1eb37bc108adf90f58fb349a08724a71f5e4bb","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":41199577,"node_id":"MDEwOlJlcG9zaXRvcnk0MTE5OTU3Nw==","name":"simplenote-electron","full_name":"Automattic/simplenote-electron","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/simplenote-electron","description":"A Simplenote React app packaged via Electron for Windows and Linux","fork":false,"url":"https://api.github.com/repos/Automattic/simplenote-electron","forks_url":"https://api.github.com/repos/Automattic/simplenote-electron/forks","keys_url":"https://api.github.com/repos/Automattic/simplenote-electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/simplenote-electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/simplenote-electron/teams","hooks_url":"https://api.github.com/repos/Automattic/simplenote-electron/hooks","issue_events_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/simplenote-electron/events","assignees_url":"https://api.github.com/repos/Automattic/simplenote-electron/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/simplenote-electron/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/simplenote-electron/tags","blobs_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/simplenote-electron/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/simplenote-electron/languages","stargazers_url":"https://api.github.com/repos/Automattic/simplenote-electron/stargazers","contributors_url":"https://api.github.com/repos/Automattic/simplenote-electron/contributors","subscribers_url":"https://api.github.com/repos/Automattic/simplenote-electron/subscribers","subscription_url":"https://api.github.com/repos/Automattic/simplenote-electron/subscription","commits_url":"https://api.github.com/repos/Automattic/simplenote-electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/simplenote-electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/simplenote-electron/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/simplenote-electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/simplenote-electron/merges","archive_url":"https://api.github.com/repos/Automattic/simplenote-electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/simplenote-electron/downloads","issues_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/simplenote-electron/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/simplenote-electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/simplenote-electron/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/simplenote-electron/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/simplenote-electron/deployments","created_at":"2015-08-22T09:06:44Z","updated_at":"2019-12-13T05:23:04Z","pushed_at":"2019-12-13T15:41:32Z","git_url":"git://github.com/Automattic/simplenote-electron.git","ssh_url":"git@github.com:Automattic/simplenote-electron.git","clone_url":"https://github.com/Automattic/simplenote-electron.git","svn_url":"https://github.com/Automattic/simplenote-electron","homepage":"","size":10495,"stargazers_count":2675,"watchers_count":2675,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":115,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":390,"open_issues":115,"watchers":2675,"default_branch":"develop"}},"base":{"label":"Automattic:develop","ref":"develop","sha":"3674ab646bd5887e6beb2743c39b87353c54bbd6","user":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":41199577,"node_id":"MDEwOlJlcG9zaXRvcnk0MTE5OTU3Nw==","name":"simplenote-electron","full_name":"Automattic/simplenote-electron","private":false,"owner":{"login":"Automattic","id":887802,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg4NzgwMg==","avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Automattic/simplenote-electron","description":"A Simplenote React app packaged via Electron for Windows and Linux","fork":false,"url":"https://api.github.com/repos/Automattic/simplenote-electron","forks_url":"https://api.github.com/repos/Automattic/simplenote-electron/forks","keys_url":"https://api.github.com/repos/Automattic/simplenote-electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/simplenote-electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/simplenote-electron/teams","hooks_url":"https://api.github.com/repos/Automattic/simplenote-electron/hooks","issue_events_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/simplenote-electron/events","assignees_url":"https://api.github.com/repos/Automattic/simplenote-electron/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/simplenote-electron/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/simplenote-electron/tags","blobs_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/simplenote-electron/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/simplenote-electron/languages","stargazers_url":"https://api.github.com/repos/Automattic/simplenote-electron/stargazers","contributors_url":"https://api.github.com/repos/Automattic/simplenote-electron/contributors","subscribers_url":"https://api.github.com/repos/Automattic/simplenote-electron/subscribers","subscription_url":"https://api.github.com/repos/Automattic/simplenote-electron/subscription","commits_url":"https://api.github.com/repos/Automattic/simplenote-electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/simplenote-electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/simplenote-electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/simplenote-electron/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/simplenote-electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/simplenote-electron/merges","archive_url":"https://api.github.com/repos/Automattic/simplenote-electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/simplenote-electron/downloads","issues_url":"https://api.github.com/repos/Automattic/simplenote-electron/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/simplenote-electron/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/simplenote-electron/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/simplenote-electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/simplenote-electron/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/simplenote-electron/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/simplenote-electron/deployments","created_at":"2015-08-22T09:06:44Z","updated_at":"2019-12-13T05:23:04Z","pushed_at":"2019-12-13T15:41:32Z","git_url":"git://github.com/Automattic/simplenote-electron.git","ssh_url":"git@github.com:Automattic/simplenote-electron.git","clone_url":"https://github.com/Automattic/simplenote-electron.git","svn_url":"https://github.com/Automattic/simplenote-electron","homepage":"","size":10495,"stargazers_count":2675,"watchers_count":2675,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":115,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":390,"open_issues":115,"watchers":2675,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743"},"html":{"href":"https://github.com/Automattic/simplenote-electron/pull/1743"},"issue":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/issues/1743"},"comments":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/issues/1743/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/pulls/1743/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/simplenote-electron/statuses/3b1eb37bc108adf90f58fb349a08724a71f5e4bb"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"dmsnell"}}