From 0c0bbf58e2522162c7e83422057ee3ae79d1c3a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dandelion=20Man=C3=A9?=
Date: Mon, 30 Apr 2018 19:21:41 -0700
Subject: [PATCH] Update example repo data (#180)
I added a lot of new comments that have url references to different
types of GitHub entities, e.g. to pull request review comments.
The commit was generated by running the example repo fetcher, and
running yarn test and updating snapshots.
---
.../githubPluginAdapter.test.js.snap | 91 +++++++
.../github/__snapshots__/parser.test.js.snap | 223 ++++++++++++++++++
src/plugins/github/demoData/example-repo.json | 68 +++++-
3 files changed, 381 insertions(+), 1 deletion(-)
diff --git a/src/plugins/artifact/editor/adapters/__snapshots__/githubPluginAdapter.test.js.snap b/src/plugins/artifact/editor/adapters/__snapshots__/githubPluginAdapter.test.js.snap
index 813ab6c..caff26d 100644
--- a/src/plugins/artifact/editor/adapters/__snapshots__/githubPluginAdapter.test.js.snap
+++ b/src/plugins/artifact/editor/adapters/__snapshots__/githubPluginAdapter.test.js.snap
@@ -74,6 +74,97 @@ https://github.com/sourcecred/example-repo/issues/6#issuecomment-373768538",
type:
COMMENT
(details to be implemented)
+,
+ "title": "comment on #2: A referencing issue.",
+ "type": "COMMENT",
+ },
+ Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185",
+ "payload": Object {
+ "body": "Here's a PR by direct url: https://github.com/sourcecred/example-repo/pull/5",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185",
+ },
+ "rendered":
+ type:
+ COMMENT
+ (details to be implemented)
+
,
+ "title": "comment on #2: A referencing issue.",
+ "type": "COMMENT",
+ },
+ Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220",
+ "payload": Object {
+ "body": "a PR review by url: https://github.com/sourcecred/example-repo/pull/5#pullrequestreview-100313899",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220",
+ },
+ "rendered":
+ type:
+ COMMENT
+ (details to be implemented)
+
,
+ "title": "comment on #2: A referencing issue.",
+ "type": "COMMENT",
+ },
+ Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248",
+ "payload": Object {
+ "body": "a PR Review Comment by url: https://github.com/sourcecred/example-repo/pull/5#discussion_r171460198",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248",
+ },
+ "rendered":
+ type:
+ COMMENT
+ (details to be implemented)
+
,
+ "title": "comment on #2: A referencing issue.",
+ "type": "COMMENT",
+ },
+ Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273",
+ "payload": Object {
+ "body": "a user by url: https://github.com/wchargin",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273",
+ },
+ "rendered":
+ type:
+ COMMENT
+ (details to be implemented)
+
,
+ "title": "comment on #2: A referencing issue.",
+ "type": "COMMENT",
+ },
+ Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920",
+ "payload": Object {
+ "body": "Here are several references:
+#1
+#2
+#3
+
+https://github.com/sourcecred/example-repo/pull/5#discussion_r171460198
+https://github.com/sourcecred/example-repo/pull/5#pullrequestreview-100313899
+",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920",
+ },
+ "rendered":
+ type:
+ COMMENT
+ (details to be implemented)
+
,
+ "title": "comment on #2: A referencing issue.",
+ "type": "COMMENT",
+ },
+ Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936",
+ "payload": Object {
+ "body": "This comment has no references.",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936",
+ },
+ "rendered":
+ type:
+ COMMENT
+ (details to be implemented)
,
"title": "comment on #2: A referencing issue.",
"type": "COMMENT",
diff --git a/src/plugins/github/__snapshots__/parser.test.js.snap b/src/plugins/github/__snapshots__/parser.test.js.snap
index 7c94c93..17df0ab 100644
--- a/src/plugins/github/__snapshots__/parser.test.js.snap
+++ b/src/plugins/github/__snapshots__/parser.test.js.snap
@@ -469,6 +469,96 @@ Object {
"type": "COMMENT",
},
},
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ },
"{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"AUTHORS\\"}": Object {
"dst": Object {
"id": "https://github.com/decentralion",
@@ -664,6 +754,96 @@ Object {
"type": "ISSUE",
},
},
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "ISSUE",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "ISSUE",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "ISSUE",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "ISSUE",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "ISSUE",
+ },
+ },
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "COMMENT",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-repo/issues/2",
+ "pluginName": "sourcecred/github-beta",
+ "repositoryName": "sourcecred/example-repo",
+ "type": "ISSUE",
+ },
+ },
"{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/6\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-repo/issues/6#issuecomment-373768442\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"repositoryName\\\\\\":\\\\\\"sourcecred/example-repo\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"CONTAINS\\"}": Object {
"dst": Object {
"id": "https://github.com/sourcecred/example-repo/issues/6#issuecomment-373768442",
@@ -852,6 +1032,49 @@ https://github.com/sourcecred/example-repo/issues/6#issuecomment-373768538",
"url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-373768850",
},
},
+ "{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"COMMENT\\"}": Object {
+ "payload": Object {
+ "body": "Here's a PR by direct url: https://github.com/sourcecred/example-repo/pull/5",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185",
+ },
+ },
+ "{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"COMMENT\\"}": Object {
+ "payload": Object {
+ "body": "a PR review by url: https://github.com/sourcecred/example-repo/pull/5#pullrequestreview-100313899",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220",
+ },
+ },
+ "{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"COMMENT\\"}": Object {
+ "payload": Object {
+ "body": "a PR Review Comment by url: https://github.com/sourcecred/example-repo/pull/5#discussion_r171460198",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248",
+ },
+ },
+ "{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"COMMENT\\"}": Object {
+ "payload": Object {
+ "body": "a user by url: https://github.com/wchargin",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273",
+ },
+ },
+ "{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"COMMENT\\"}": Object {
+ "payload": Object {
+ "body": "Here are several references:
+#1
+#2
+#3
+
+https://github.com/sourcecred/example-repo/pull/5#discussion_r171460198
+https://github.com/sourcecred/example-repo/pull/5#pullrequestreview-100313899
+",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920",
+ },
+ },
+ "{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"COMMENT\\"}": Object {
+ "payload": Object {
+ "body": "This comment has no references.",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936",
+ },
+ },
"{\\"id\\":\\"https://github.com/sourcecred/example-repo/issues/4\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"repositoryName\\":\\"sourcecred/example-repo\\",\\"type\\":\\"ISSUE\\"}": Object {
"payload": Object {
"body": "Alas, its life as an open issue had only just begun.",
diff --git a/src/plugins/github/demoData/example-repo.json b/src/plugins/github/demoData/example-repo.json
index 79a7078..69b3fa9 100644
--- a/src/plugins/github/demoData/example-repo.json
+++ b/src/plugins/github/demoData/example-repo.json
@@ -55,10 +55,76 @@
"body": "We might also reference individual comments directly.\r\nhttps://github.com/sourcecred/example-repo/issues/6#issuecomment-373768538",
"id": "MDEyOklzc3VlQ29tbWVudDM3Mzc2ODg1MA==",
"url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-373768850"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "Here's a PR by direct url: https://github.com/sourcecred/example-repo/pull/5",
+ "id": "MDEyOklzc3VlQ29tbWVudDM4NTU3NjE4NQ==",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576185"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "a PR review by url: https://github.com/sourcecred/example-repo/pull/5#pullrequestreview-100313899",
+ "id": "MDEyOklzc3VlQ29tbWVudDM4NTU3NjIyMA==",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576220"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "a PR Review Comment by url: https://github.com/sourcecred/example-repo/pull/5#discussion_r171460198",
+ "id": "MDEyOklzc3VlQ29tbWVudDM4NTU3NjI0OA==",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576248"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "a user by url: https://github.com/wchargin",
+ "id": "MDEyOklzc3VlQ29tbWVudDM4NTU3NjI3Mw==",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576273"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "Here are several references:\r\n#1 \r\n#2\r\n#3 \r\n\r\nhttps://github.com/sourcecred/example-repo/pull/5#discussion_r171460198\r\nhttps://github.com/sourcecred/example-repo/pull/5#pullrequestreview-100313899\r\n",
+ "id": "MDEyOklzc3VlQ29tbWVudDM4NTU3NjkyMA==",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576920"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "This comment has no references.",
+ "id": "MDEyOklzc3VlQ29tbWVudDM4NTU3NjkzNg==",
+ "url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-385576936"
}
],
"pageInfo": {
- "endCursor": "Y3Vyc29yOnYyOpHOFkdCkg==",
+ "endCursor": "Y3Vyc29yOnYyOpHOFvtv6A==",
"hasNextPage": false
}
},