{"action":"created","comment":{"url":"https://api.github.com/repos/oughtinc/mosaic/pulls/comments/228503328","pull_request_review_id":168792890,"id":228503328,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODUwMzMyOA==","diff_hunk":"@@ -0,0 +1,67 @@\n+// Adapted from this https://github.com/ianstormtaylor/slate/blob/3528bb7366f5b87a14fe9adef65a42d2e0eb712f/examples/links/index.js\n+import isUrl = require(\"is-url\");\n+import * as React from \"react\";\n+import { getEventTransfer } from \"slate-react\";\n+\n+function wrapLink(change: any, href: any) {\n+  change.insertInline({\n+    type: \"link\",\n+    data: { href },\n+    nodes: [\n+      {\n+        object: \"text\",\n+        leaves: [\n+          {\n+            object: \"leaf\",\n+            text: href,\n+          }\n+        ]\n+      }\n+    ]\n+  });\n+\n+  change.collapseToEnd();\n+}\n+\n+function LinkifyPlugin() {\n+  return {\n+    onPaste: (event, change) => {\n+      const transfer = getEventTransfer(event);\n+      const { type, text } = transfer;\n+      if (type !== \"text\" && type !== \"html\") {","path":"client/src/lib/slate-plugins/linkifyPlugin.tsx","position":31,"original_position":31,"commit_id":"b23897200afef415fee71caa39dac47aa293308f","original_commit_id":"b23897200afef415fee71caa39dac47aa293308f","user":{"login":"OAGr","id":377065,"node_id":"MDQ6VXNlcjM3NzA2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/377065?v=4","gravatar_id":"","url":"https://api.github.com/users/OAGr","html_url":"https://github.com/OAGr","followers_url":"https://api.github.com/users/OAGr/followers","following_url":"https://api.github.com/users/OAGr/following{/other_user}","gists_url":"https://api.github.com/users/OAGr/gists{/gist_id}","starred_url":"https://api.github.com/users/OAGr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OAGr/subscriptions","organizations_url":"https://api.github.com/users/OAGr/orgs","repos_url":"https://api.github.com/users/OAGr/repos","events_url":"https://api.github.com/users/OAGr/events{/privacy}","received_events_url":"https://api.github.com/users/OAGr/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n      if (type !== \"text\" && type !== \"html\" && !isUrl(text)) {\r\n```","created_at":"2018-10-26T12:11:02Z","updated_at":"2018-10-26T12:11:02Z","html_url":"https://github.com/oughtinc/mosaic/pull/215#discussion_r228503328","pull_request_url":"https://api.github.com/repos/oughtinc/mosaic/pulls/215","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/oughtinc/mosaic/pulls/comments/228503328"},"html":{"href":"https://github.com/oughtinc/mosaic/pull/215#discussion_r228503328"},"pull_request":{"href":"https://api.github.com/repos/oughtinc/mosaic/pulls/215"}}},"pull_request":{"url":"https://api.github.com/repos/oughtinc/mosaic/pulls/215","id":225126434,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MTI2NDM0","html_url":"https://github.com/oughtinc/mosaic/pull/215","diff_url":"https://github.com/oughtinc/mosaic/pull/215.diff","patch_url":"https://github.com/oughtinc/mosaic/pull/215.patch","issue_url":"https://api.github.com/repos/oughtinc/mosaic/issues/215","number":215,"state":"open","locked":false,"title":"Add Linkify plugin","user":{"login":"zjmiller","id":759304,"node_id":"MDQ6VXNlcjc1OTMwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/759304?v=4","gravatar_id":"","url":"https://api.github.com/users/zjmiller","html_url":"https://github.com/zjmiller","followers_url":"https://api.github.com/users/zjmiller/followers","following_url":"https://api.github.com/users/zjmiller/following{/other_user}","gists_url":"https://api.github.com/users/zjmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/zjmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjmiller/subscriptions","organizations_url":"https://api.github.com/users/zjmiller/orgs","repos_url":"https://api.github.com/users/zjmiller/repos","events_url":"https://api.github.com/users/zjmiller/events{/privacy}","received_events_url":"https://api.github.com/users/zjmiller/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-23T17:37:46Z","updated_at":"2018-10-26T12:11:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8d8194e0597336fb3e89ae7a426be9bec918616","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oughtinc/mosaic/pulls/215/commits","review_comments_url":"https://api.github.com/repos/oughtinc/mosaic/pulls/215/comments","review_comment_url":"https://api.github.com/repos/oughtinc/mosaic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oughtinc/mosaic/issues/215/comments","statuses_url":"https://api.github.com/repos/oughtinc/mosaic/statuses/b23897200afef415fee71caa39dac47aa293308f","head":{"label":"oughtinc:add-linkify-plugin","ref":"add-linkify-plugin","sha":"b23897200afef415fee71caa39dac47aa293308f","user":{"login":"oughtinc","id":18450167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDUwMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/18450167?v=4","gravatar_id":"","url":"https://api.github.com/users/oughtinc","html_url":"https://github.com/oughtinc","followers_url":"https://api.github.com/users/oughtinc/followers","following_url":"https://api.github.com/users/oughtinc/following{/other_user}","gists_url":"https://api.github.com/users/oughtinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oughtinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oughtinc/subscriptions","organizations_url":"https://api.github.com/users/oughtinc/orgs","repos_url":"https://api.github.com/users/oughtinc/repos","events_url":"https://api.github.com/users/oughtinc/events{/privacy}","received_events_url":"https://api.github.com/users/oughtinc/received_events","type":"Organization","site_admin":false},"repo":{"id":122408559,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI0MDg1NTk=","name":"mosaic","full_name":"oughtinc/mosaic","private":false,"owner":{"login":"oughtinc","id":18450167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDUwMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/18450167?v=4","gravatar_id":"","url":"https://api.github.com/users/oughtinc","html_url":"https://github.com/oughtinc","followers_url":"https://api.github.com/users/oughtinc/followers","following_url":"https://api.github.com/users/oughtinc/following{/other_user}","gists_url":"https://api.github.com/users/oughtinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oughtinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oughtinc/subscriptions","organizations_url":"https://api.github.com/users/oughtinc/orgs","repos_url":"https://api.github.com/users/oughtinc/repos","events_url":"https://api.github.com/users/oughtinc/events{/privacy}","received_events_url":"https://api.github.com/users/oughtinc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/oughtinc/mosaic","description":"A web app for recursive question-answering with pointers","fork":false,"url":"https://api.github.com/repos/oughtinc/mosaic","forks_url":"https://api.github.com/repos/oughtinc/mosaic/forks","keys_url":"https://api.github.com/repos/oughtinc/mosaic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oughtinc/mosaic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oughtinc/mosaic/teams","hooks_url":"https://api.github.com/repos/oughtinc/mosaic/hooks","issue_events_url":"https://api.github.com/repos/oughtinc/mosaic/issues/events{/number}","events_url":"https://api.github.com/repos/oughtinc/mosaic/events","assignees_url":"https://api.github.com/repos/oughtinc/mosaic/assignees{/user}","branches_url":"https://api.github.com/repos/oughtinc/mosaic/branches{/branch}","tags_url":"https://api.github.com/repos/oughtinc/mosaic/tags","blobs_url":"https://api.github.com/repos/oughtinc/mosaic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oughtinc/mosaic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oughtinc/mosaic/git/refs{/sha}","trees_url":"https://api.github.com/repos/oughtinc/mosaic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oughtinc/mosaic/statuses/{sha}","languages_url":"https://api.github.com/repos/oughtinc/mosaic/languages","stargazers_url":"https://api.github.com/repos/oughtinc/mosaic/stargazers","contributors_url":"https://api.github.com/repos/oughtinc/mosaic/contributors","subscribers_url":"https://api.github.com/repos/oughtinc/mosaic/subscribers","subscription_url":"https://api.github.com/repos/oughtinc/mosaic/subscription","commits_url":"https://api.github.com/repos/oughtinc/mosaic/commits{/sha}","git_commits_url":"https://api.github.com/repos/oughtinc/mosaic/git/commits{/sha}","comments_url":"https://api.github.com/repos/oughtinc/mosaic/comments{/number}","issue_comment_url":"https://api.github.com/repos/oughtinc/mosaic/issues/comments{/number}","contents_url":"https://api.github.com/repos/oughtinc/mosaic/contents/{+path}","compare_url":"https://api.github.com/repos/oughtinc/mosaic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oughtinc/mosaic/merges","archive_url":"https://api.github.com/repos/oughtinc/mosaic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oughtinc/mosaic/downloads","issues_url":"https://api.github.com/repos/oughtinc/mosaic/issues{/number}","pulls_url":"https://api.github.com/repos/oughtinc/mosaic/pulls{/number}","milestones_url":"https://api.github.com/repos/oughtinc/mosaic/milestones{/number}","notifications_url":"https://api.github.com/repos/oughtinc/mosaic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oughtinc/mosaic/labels{/name}","releases_url":"https://api.github.com/repos/oughtinc/mosaic/releases{/id}","deployments_url":"https://api.github.com/repos/oughtinc/mosaic/deployments","created_at":"2018-02-21T23:49:57Z","updated_at":"2018-10-26T10:44:46Z","pushed_at":"2018-10-26T10:44:45Z","git_url":"git://github.com/oughtinc/mosaic.git","ssh_url":"git@github.com:oughtinc/mosaic.git","clone_url":"https://github.com/oughtinc/mosaic.git","svn_url":"https://github.com/oughtinc/mosaic","homepage":"https://mosaic.ought.org","size":2845,"stargazers_count":9,"watchers_count":9,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":73,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":73,"watchers":9,"default_branch":"master"}},"base":{"label":"oughtinc:master","ref":"master","sha":"8fe51cefd160d8c7c51e93ac2f001f2275a034a2","user":{"login":"oughtinc","id":18450167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDUwMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/18450167?v=4","gravatar_id":"","url":"https://api.github.com/users/oughtinc","html_url":"https://github.com/oughtinc","followers_url":"https://api.github.com/users/oughtinc/followers","following_url":"https://api.github.com/users/oughtinc/following{/other_user}","gists_url":"https://api.github.com/users/oughtinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oughtinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oughtinc/subscriptions","organizations_url":"https://api.github.com/users/oughtinc/orgs","repos_url":"https://api.github.com/users/oughtinc/repos","events_url":"https://api.github.com/users/oughtinc/events{/privacy}","received_events_url":"https://api.github.com/users/oughtinc/received_events","type":"Organization","site_admin":false},"repo":{"id":122408559,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI0MDg1NTk=","name":"mosaic","full_name":"oughtinc/mosaic","private":false,"owner":{"login":"oughtinc","id":18450167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NDUwMTY3","avatar_url":"https://avatars2.githubusercontent.com/u/18450167?v=4","gravatar_id":"","url":"https://api.github.com/users/oughtinc","html_url":"https://github.com/oughtinc","followers_url":"https://api.github.com/users/oughtinc/followers","following_url":"https://api.github.com/users/oughtinc/following{/other_user}","gists_url":"https://api.github.com/users/oughtinc/gists{/gist_id}","starred_url":"https://api.github.com/users/oughtinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oughtinc/subscriptions","organizations_url":"https://api.github.com/users/oughtinc/orgs","repos_url":"https://api.github.com/users/oughtinc/repos","events_url":"https://api.github.com/users/oughtinc/events{/privacy}","received_events_url":"https://api.github.com/users/oughtinc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/oughtinc/mosaic","description":"A web app for recursive question-answering with pointers","fork":false,"url":"https://api.github.com/repos/oughtinc/mosaic","forks_url":"https://api.github.com/repos/oughtinc/mosaic/forks","keys_url":"https://api.github.com/repos/oughtinc/mosaic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oughtinc/mosaic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oughtinc/mosaic/teams","hooks_url":"https://api.github.com/repos/oughtinc/mosaic/hooks","issue_events_url":"https://api.github.com/repos/oughtinc/mosaic/issues/events{/number}","events_url":"https://api.github.com/repos/oughtinc/mosaic/events","assignees_url":"https://api.github.com/repos/oughtinc/mosaic/assignees{/user}","branches_url":"https://api.github.com/repos/oughtinc/mosaic/branches{/branch}","tags_url":"https://api.github.com/repos/oughtinc/mosaic/tags","blobs_url":"https://api.github.com/repos/oughtinc/mosaic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oughtinc/mosaic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oughtinc/mosaic/git/refs{/sha}","trees_url":"https://api.github.com/repos/oughtinc/mosaic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oughtinc/mosaic/statuses/{sha}","languages_url":"https://api.github.com/repos/oughtinc/mosaic/languages","stargazers_url":"https://api.github.com/repos/oughtinc/mosaic/stargazers","contributors_url":"https://api.github.com/repos/oughtinc/mosaic/contributors","subscribers_url":"https://api.github.com/repos/oughtinc/mosaic/subscribers","subscription_url":"https://api.github.com/repos/oughtinc/mosaic/subscription","commits_url":"https://api.github.com/repos/oughtinc/mosaic/commits{/sha}","git_commits_url":"https://api.github.com/repos/oughtinc/mosaic/git/commits{/sha}","comments_url":"https://api.github.com/repos/oughtinc/mosaic/comments{/number}","issue_comment_url":"https://api.github.com/repos/oughtinc/mosaic/issues/comments{/number}","contents_url":"https://api.github.com/repos/oughtinc/mosaic/contents/{+path}","compare_url":"https://api.github.com/repos/oughtinc/mosaic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oughtinc/mosaic/merges","archive_url":"https://api.github.com/repos/oughtinc/mosaic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oughtinc/mosaic/downloads","issues_url":"https://api.github.com/repos/oughtinc/mosaic/issues{/number}","pulls_url":"https://api.github.com/repos/oughtinc/mosaic/pulls{/number}","milestones_url":"https://api.github.com/repos/oughtinc/mosaic/milestones{/number}","notifications_url":"https://api.github.com/repos/oughtinc/mosaic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oughtinc/mosaic/labels{/name}","releases_url":"https://api.github.com/repos/oughtinc/mosaic/releases{/id}","deployments_url":"https://api.github.com/repos/oughtinc/mosaic/deployments","created_at":"2018-02-21T23:49:57Z","updated_at":"2018-10-26T10:44:46Z","pushed_at":"2018-10-26T10:44:45Z","git_url":"git://github.com/oughtinc/mosaic.git","ssh_url":"git@github.com:oughtinc/mosaic.git","clone_url":"https://github.com/oughtinc/mosaic.git","svn_url":"https://github.com/oughtinc/mosaic","homepage":"https://mosaic.ought.org","size":2845,"stargazers_count":9,"watchers_count":9,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":73,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":73,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oughtinc/mosaic/pulls/215"},"html":{"href":"https://github.com/oughtinc/mosaic/pull/215"},"issue":{"href":"https://api.github.com/repos/oughtinc/mosaic/issues/215"},"comments":{"href":"https://api.github.com/repos/oughtinc/mosaic/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/oughtinc/mosaic/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/oughtinc/mosaic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oughtinc/mosaic/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/oughtinc/mosaic/statuses/b23897200afef415fee71caa39dac47aa293308f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"OAGr"}}