From 136cfa839c533277828bec69622f1d6433d6a3ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dandelion=20Man=C3=A9?=
Date: Thu, 3 May 2018 12:03:19 -0700
Subject: [PATCH] Update example-github data (#197)
---
.../githubPluginAdapter.test.js.snap | 16 +++++++++
.../github/__snapshots__/parser.test.js.snap | 34 +++++++++++++++++++
.../github/demoData/example-github.json | 31 ++++++++++++++++-
3 files changed, 80 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 1625a6b..c0d1236 100644
--- a/src/plugins/artifact/editor/adapters/__snapshots__/githubPluginAdapter.test.js.snap
+++ b/src/plugins/artifact/editor/adapters/__snapshots__/githubPluginAdapter.test.js.snap
@@ -370,6 +370,22 @@ Issue with Unicode: ศดแฒ๐ฃณๆฅข๐ :heart: ๐ค๐ค๐ค๐ค๐ค๐ค๐ค๐ค
"title": "review of #5: This pull request will be more contentious. I can feel it...",
"type": "PULL_REQUEST_REVIEW",
},
+ Object {
+ "id": "https://github.com/sourcecred/example-github/pull/9",
+ "payload": Object {
+ "body": "Nominally paired with @wchargin",
+ "number": 9,
+ "title": "An unmerged pull request",
+ "url": "https://github.com/sourcecred/example-github/pull/9",
+ },
+ "rendered":
+ type:
+ PULL_REQUEST
+ (details to be implemented)
+
,
+ "title": "#9: An unmerged pull request",
+ "type": "PULL_REQUEST",
+ },
Object {
"id": "https://github.com/wchargin",
"payload": Object {
diff --git a/src/plugins/github/__snapshots__/parser.test.js.snap b/src/plugins/github/__snapshots__/parser.test.js.snap
index feb17ec..08b00e3 100644
--- a/src/plugins/github/__snapshots__/parser.test.js.snap
+++ b/src/plugins/github/__snapshots__/parser.test.js.snap
@@ -1492,6 +1492,19 @@ Object {
"type": "PULL_REQUEST",
},
},
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/decentralion\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-github/pull/9\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"PULL_REQUEST\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"type\\":\\"AUTHORS\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/decentralion",
+ "pluginName": "sourcecred/github-beta",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-github/pull/9",
+ "pluginName": "sourcecred/github-beta",
+ "type": "PULL_REQUEST",
+ },
+ },
"{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-github/issues/2#issuecomment-373768703\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"COMMENT\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-github/issues/6\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"ISSUE\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"type\\":\\"REFERENCES\\"}": Object {
"dst": Object {
"id": "https://github.com/sourcecred/example-github/issues/6",
@@ -1882,6 +1895,19 @@ Object {
"type": "PULL_REQUEST",
},
},
+ "{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-github/pull/9\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"PULL_REQUEST\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/wchargin\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"type\\":\\"REFERENCES\\"}": Object {
+ "dst": Object {
+ "id": "https://github.com/wchargin",
+ "pluginName": "sourcecred/github-beta",
+ "type": "AUTHOR",
+ },
+ "payload": Object {},
+ "src": Object {
+ "id": "https://github.com/sourcecred/example-github/pull/9",
+ "pluginName": "sourcecred/github-beta",
+ "type": "PULL_REQUEST",
+ },
+ },
"{\\"id\\":\\"[{\\\\\\"id\\\\\\":\\\\\\"https://github.com/wchargin\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"AUTHOR\\\\\\"},{\\\\\\"id\\\\\\":\\\\\\"https://github.com/sourcecred/example-github/pull/5#discussion_r171460198\\\\\\",\\\\\\"pluginName\\\\\\":\\\\\\"sourcecred/github-beta\\\\\\",\\\\\\"type\\\\\\":\\\\\\"PULL_REQUEST_REVIEW_COMMENT\\\\\\"}]\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"type\\":\\"AUTHORS\\"}": Object {
"dst": Object {
"id": "https://github.com/wchargin",
@@ -2099,6 +2125,14 @@ Issue with Unicode: ศดแฒ๐ฃณๆฅข๐ :heart: ๐ค๐ค๐ค๐ค๐ค๐ค๐ค๐ค
"url": "https://github.com/sourcecred/example-github/pull/5#pullrequestreview-100314038",
},
},
+ "{\\"id\\":\\"https://github.com/sourcecred/example-github/pull/9\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"type\\":\\"PULL_REQUEST\\"}": Object {
+ "payload": Object {
+ "body": "Nominally paired with @wchargin",
+ "number": 9,
+ "title": "An unmerged pull request",
+ "url": "https://github.com/sourcecred/example-github/pull/9",
+ },
+ },
"{\\"id\\":\\"https://github.com/wchargin\\",\\"pluginName\\":\\"sourcecred/github-beta\\",\\"type\\":\\"AUTHOR\\"}": Object {
"payload": Object {
"login": "wchargin",
diff --git a/src/plugins/github/demoData/example-github.json b/src/plugins/github/demoData/example-github.json
index e75b426..5afb6cb 100644
--- a/src/plugins/github/demoData/example-github.json
+++ b/src/plugins/github/demoData/example-github.json
@@ -377,10 +377,39 @@
},
"title": "This pull request will be more contentious. I can feel it...",
"url": "https://github.com/sourcecred/example-github/pull/5"
+ },
+ {
+ "author": {
+ "__typename": "User",
+ "id": "MDQ6VXNlcjE0MDAwMjM=",
+ "login": "decentralion",
+ "url": "https://github.com/decentralion"
+ },
+ "body": "Nominally paired with @wchargin",
+ "comments": {
+ "nodes": [
+ ],
+ "pageInfo": {
+ "endCursor": null,
+ "hasNextPage": false
+ }
+ },
+ "id": "MDExOlB1bGxSZXF1ZXN0MTg1ODA2MTU3",
+ "number": 9,
+ "reviews": {
+ "nodes": [
+ ],
+ "pageInfo": {
+ "endCursor": null,
+ "hasNextPage": false
+ }
+ },
+ "title": "An unmerged pull request",
+ "url": "https://github.com/sourcecred/example-github/pull/9"
}
],
"pageInfo": {
- "endCursor": "Y3Vyc29yOnYyOpHOCj7Pig==",
+ "endCursor": "Y3Vyc29yOnYyOpHOCxMtTQ==",
"hasNextPage": false
}
}