{"action":"created","comment":{"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/comments/80748493","pull_request_review_id":1782554,"id":80748493,"diff_hunk":"@@ -0,0 +1,72 @@\n+/* exported assertPasteEvent, pasteFiles */\n+\n+'use strict';\n+\n+function assertPasteEvent( editor, eventData, expected, message, async ) {","path":"tests/paste_events/_helpers/pasting.js","position":5,"original_position":5,"commit_id":"fb0ef0a60c79076f5e3500a8ed3a6090f265f2a6","original_commit_id":"fb0ef0a60c79076f5e3500a8ed3a6090f265f2a6","user":{"login":"sbaughman","id":13240692,"avatar_url":"https://avatars.githubusercontent.com/u/13240692?v=3","gravatar_id":"","url":"https://api.github.com/users/sbaughman","html_url":"https://github.com/sbaughman","followers_url":"https://api.github.com/users/sbaughman/followers","following_url":"https://api.github.com/users/sbaughman/following{/other_user}","gists_url":"https://api.github.com/users/sbaughman/gists{/gist_id}","starred_url":"https://api.github.com/users/sbaughman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbaughman/subscriptions","organizations_url":"https://api.github.com/users/sbaughman/orgs","repos_url":"https://api.github.com/users/sbaughman/repos","events_url":"https://api.github.com/users/sbaughman/events{/privacy}","received_events_url":"https://api.github.com/users/sbaughman/received_events","type":"User","site_admin":false},"body":"Added attribution","created_at":"2016-09-27T17:28:56Z","updated_at":"2016-09-27T17:28:56Z","html_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings/pull/4#discussion_r80748493","pull_request_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/comments/80748493"},"html":{"href":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings/pull/4#discussion_r80748493"},"pull_request":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4","id":86345777,"html_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings/pull/4","diff_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings/pull/4.diff","patch_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings/pull/4.patch","issue_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/4","number":4,"state":"open","locked":false,"title":"Handle duplicate ids when doing full copy","user":{"login":"sbaughman","id":13240692,"avatar_url":"https://avatars.githubusercontent.com/u/13240692?v=3","gravatar_id":"","url":"https://api.github.com/users/sbaughman","html_url":"https://github.com/sbaughman","followers_url":"https://api.github.com/users/sbaughman/followers","following_url":"https://api.github.com/users/sbaughman/following{/other_user}","gists_url":"https://api.github.com/users/sbaughman/gists{/gist_id}","starred_url":"https://api.github.com/users/sbaughman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbaughman/subscriptions","organizations_url":"https://api.github.com/users/sbaughman/orgs","repos_url":"https://api.github.com/users/sbaughman/repos","events_url":"https://api.github.com/users/sbaughman/events{/privacy}","received_events_url":"https://api.github.com/users/sbaughman/received_events","type":"User","site_admin":false},"body":"This adds handling of a variety of heading-id integrity issues that can result from cut/paste and copy/paste scenarios.\r\n\r\nIt takes advantage of the fact that the `paste` event allows the pasted data to be intercepted and modified just before being inserted on the page.  The paste data is parsed and searched for headings.  If there are headings, it checks for id duplication between any copied headings and headings already on the page.  If a duplicate is found, it chooses an appropriate way to resolve the duplication based on various attributes of the two headings. ","created_at":"2016-09-22T14:14:41Z","updated_at":"2016-09-27T17:28:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5765ab8732827da4d4f0a642284da3f876b34128","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4/commits","review_comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4/comments","review_comment_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/4/comments","statuses_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/statuses/fb0ef0a60c79076f5e3500a8ed3a6090f265f2a6","head":{"label":"PolicyStat:cut_copy_paste","ref":"cut_copy_paste","sha":"fb0ef0a60c79076f5e3500a8ed3a6090f265f2a6","user":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"repo":{"id":68577655,"name":"ckeditor-plugin-autoid-headings","full_name":"PolicyStat/ckeditor-plugin-autoid-headings","owner":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings","description":"Plugin to support automatic ID creation for headings","fork":false,"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings","forks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/forks","keys_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/teams","hooks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/hooks","issue_events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/events{/number}","events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/events","assignees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/assignees{/user}","branches_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/branches{/branch}","tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/tags","blobs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/statuses/{sha}","languages_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/languages","stargazers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/stargazers","contributors_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/contributors","subscribers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/subscribers","subscription_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/subscription","commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/contents/{+path}","compare_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/merges","archive_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/downloads","issues_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues{/number}","pulls_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls{/number}","milestones_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/milestones{/number}","notifications_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/labels{/name}","releases_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/releases{/id}","deployments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/deployments","created_at":"2016-09-19T06:54:09Z","updated_at":"2016-09-19T07:24:09Z","pushed_at":"2016-09-23T18:29:25Z","git_url":"git://github.com/PolicyStat/ckeditor-plugin-autoid-headings.git","ssh_url":"git@github.com:PolicyStat/ckeditor-plugin-autoid-headings.git","clone_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings.git","svn_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"PolicyStat:master","ref":"master","sha":"8b2e9a622418952a40980fab33cfe2ac731bd3e5","user":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"repo":{"id":68577655,"name":"ckeditor-plugin-autoid-headings","full_name":"PolicyStat/ckeditor-plugin-autoid-headings","owner":{"login":"PolicyStat","id":149499,"avatar_url":"https://avatars.githubusercontent.com/u/149499?v=3","gravatar_id":"","url":"https://api.github.com/users/PolicyStat","html_url":"https://github.com/PolicyStat","followers_url":"https://api.github.com/users/PolicyStat/followers","following_url":"https://api.github.com/users/PolicyStat/following{/other_user}","gists_url":"https://api.github.com/users/PolicyStat/gists{/gist_id}","starred_url":"https://api.github.com/users/PolicyStat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolicyStat/subscriptions","organizations_url":"https://api.github.com/users/PolicyStat/orgs","repos_url":"https://api.github.com/users/PolicyStat/repos","events_url":"https://api.github.com/users/PolicyStat/events{/privacy}","received_events_url":"https://api.github.com/users/PolicyStat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings","description":"Plugin to support automatic ID creation for headings","fork":false,"url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings","forks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/forks","keys_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/teams","hooks_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/hooks","issue_events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/events{/number}","events_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/events","assignees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/assignees{/user}","branches_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/branches{/branch}","tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/tags","blobs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/statuses/{sha}","languages_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/languages","stargazers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/stargazers","contributors_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/contributors","subscribers_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/subscribers","subscription_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/subscription","commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/contents/{+path}","compare_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/merges","archive_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/downloads","issues_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues{/number}","pulls_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls{/number}","milestones_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/milestones{/number}","notifications_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/labels{/name}","releases_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/releases{/id}","deployments_url":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/deployments","created_at":"2016-09-19T06:54:09Z","updated_at":"2016-09-19T07:24:09Z","pushed_at":"2016-09-23T18:29:25Z","git_url":"git://github.com/PolicyStat/ckeditor-plugin-autoid-headings.git","ssh_url":"git@github.com:PolicyStat/ckeditor-plugin-autoid-headings.git","clone_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings.git","svn_url":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4"},"html":{"href":"https://github.com/PolicyStat/ckeditor-plugin-autoid-headings/pull/4"},"issue":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/4"},"comments":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/PolicyStat/ckeditor-plugin-autoid-headings/statuses/fb0ef0a60c79076f5e3500a8ed3a6090f265f2a6"}}}}
{"actor":{"display_login":"sbaughman"}}