Regenerate example-repo testdata (#78)
I moved sourcecred/tiny-example-repository to sourcecred/example-repo as it's simpler to remember. I also unarchived it and added comments to an issue, so that we can create a simple test for issue parsing. This commit merely updates SourceCred to point to example-repo with the regenerated canoncial output.
This commit is contained in:
parent
0e57b42095
commit
d2501947a6
|
@ -10,11 +10,11 @@ main() {
|
||||||
fi
|
fi
|
||||||
output="$(mktemp)"
|
output="$(mktemp)"
|
||||||
node src/backend/bin/fetchAndPrintGitHubRepo.js \
|
node src/backend/bin/fetchAndPrintGitHubRepo.js \
|
||||||
sourcecred tiny-example-repository "${GITHUB_TOKEN}" \
|
sourcecred example-repo "${GITHUB_TOKEN}" \
|
||||||
>"${output}" \
|
>"${output}" \
|
||||||
;
|
;
|
||||||
diff -uw \
|
diff -uw \
|
||||||
src/backend/githubDemoData/tiny-example-repository.json \
|
src/backend/githubDemoData/example-repo.json \
|
||||||
"${output}" \
|
"${output}" \
|
||||||
;
|
;
|
||||||
rm "${output}"
|
rm "${output}"
|
||||||
|
|
|
@ -30,6 +30,26 @@
|
||||||
"body": "This issue references another issue, namely #1",
|
"body": "This issue references another issue, namely #1",
|
||||||
"comments": {
|
"comments": {
|
||||||
"nodes": [
|
"nodes": [
|
||||||
|
{
|
||||||
|
"author": {
|
||||||
|
"__typename": "User",
|
||||||
|
"id": "MDQ6VXNlcjE0MDAwMjM=",
|
||||||
|
"login": "dandelionmane"
|
||||||
|
},
|
||||||
|
"body": "It should also be possible to reference by exact url: https://github.com/sourcecred/example-repo/issues/6",
|
||||||
|
"id": "MDEyOklzc3VlQ29tbWVudDM3Mzc2ODcwMw==",
|
||||||
|
"url": "https://github.com/sourcecred/example-repo/issues/2#issuecomment-373768703"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": {
|
||||||
|
"__typename": "User",
|
||||||
|
"id": "MDQ6VXNlcjE0MDAwMjM=",
|
||||||
|
"login": "dandelionmane"
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"pageInfo": {
|
"pageInfo": {
|
||||||
"hasNextPage": false
|
"hasNextPage": false
|
||||||
|
@ -56,6 +76,44 @@
|
||||||
"id": "MDU6SXNzdWUzMDA5MzYzNzQ=",
|
"id": "MDU6SXNzdWUzMDA5MzYzNzQ=",
|
||||||
"number": 4,
|
"number": 4,
|
||||||
"title": "A closed pull request"
|
"title": "A closed pull request"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": {
|
||||||
|
"__typename": "User",
|
||||||
|
"id": "MDQ6VXNlcjE0MDAwMjM=",
|
||||||
|
"login": "dandelionmane"
|
||||||
|
},
|
||||||
|
"body": "This issue shall shortly have a few comments.",
|
||||||
|
"comments": {
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"author": {
|
||||||
|
"__typename": "User",
|
||||||
|
"id": "MDQ6VXNlcjE0MDAwMjM=",
|
||||||
|
"login": "dandelionmane"
|
||||||
|
},
|
||||||
|
"body": "A wild COMMENT appeared!",
|
||||||
|
"id": "MDEyOklzc3VlQ29tbWVudDM3Mzc2ODQ0Mg==",
|
||||||
|
"url": "https://github.com/sourcecred/example-repo/issues/6#issuecomment-373768442"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"author": {
|
||||||
|
"__typename": "User",
|
||||||
|
"id": "MDQ6VXNlcjE0MDAwMjM=",
|
||||||
|
"login": "dandelionmane"
|
||||||
|
},
|
||||||
|
"body": "And the maintainer said, \"Let there be comments!\"",
|
||||||
|
"id": "MDEyOklzc3VlQ29tbWVudDM3Mzc2ODUzOA==",
|
||||||
|
"url": "https://github.com/sourcecred/example-repo/issues/6#issuecomment-373768538"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pageInfo": {
|
||||||
|
"hasNextPage": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "MDU6SXNzdWUzMDU5OTM3NzM=",
|
||||||
|
"number": 6,
|
||||||
|
"title": "An issue with comments"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"pageInfo": {
|
"pageInfo": {
|
||||||
|
@ -81,7 +139,7 @@
|
||||||
},
|
},
|
||||||
"body": "It seems apropos to reference something from a pull request comment... eg: #2 ",
|
"body": "It seems apropos to reference something from a pull request comment... eg: #2 ",
|
||||||
"id": "MDEyOklzc3VlQ29tbWVudDM2OTE2MjIyMg==",
|
"id": "MDEyOklzc3VlQ29tbWVudDM2OTE2MjIyMg==",
|
||||||
"url": "https://github.com/sourcecred/tiny-example-repository/pull/3#issuecomment-369162222"
|
"url": "https://github.com/sourcecred/example-repo/pull/3#issuecomment-369162222"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"pageInfo": {
|
"pageInfo": {
|
Loading…
Reference in New Issue