mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-20 16:28:26 +00:00
Modify the GitHub plugin to get pulls' base refs (#1683)
This will enable us to mint cred on merges to master; see #1682. Test plan: Inspect snapshot changes, `yarn test --full` passes.
This commit is contained in:
parent
eebacff126
commit
6c532b51b6
@ -753,6 +753,7 @@
|
|||||||
"login": "decentralion",
|
"login": "decentralion",
|
||||||
"url": "https://github.com/decentralion"
|
"url": "https://github.com/decentralion"
|
||||||
},
|
},
|
||||||
|
"baseRefName": "master",
|
||||||
"body": "Oh look, it's a pull request.",
|
"body": "Oh look, it's a pull request.",
|
||||||
"comments": [
|
"comments": [
|
||||||
{
|
{
|
||||||
@ -867,6 +868,7 @@
|
|||||||
"login": "decentralion",
|
"login": "decentralion",
|
||||||
"url": "https://github.com/decentralion"
|
"url": "https://github.com/decentralion"
|
||||||
},
|
},
|
||||||
|
"baseRefName": "master",
|
||||||
"body": "@wchargin could you please do the following:\r\n- add a commit comment\r\n- add a review comment requesting some trivial change\r\n- i'll change it\r\n- then approve the pr",
|
"body": "@wchargin could you please do the following:\r\n- add a commit comment\r\n- add a review comment requesting some trivial change\r\n- i'll change it\r\n- then approve the pr",
|
||||||
"comments": [
|
"comments": [
|
||||||
{
|
{
|
||||||
@ -1215,6 +1217,7 @@
|
|||||||
"login": "decentralion",
|
"login": "decentralion",
|
||||||
"url": "https://github.com/decentralion"
|
"url": "https://github.com/decentralion"
|
||||||
},
|
},
|
||||||
|
"baseRefName": "master",
|
||||||
"body": "Nominally paired with @wchargin",
|
"body": "Nominally paired with @wchargin",
|
||||||
"comments": [
|
"comments": [
|
||||||
],
|
],
|
||||||
|
@ -77,6 +77,7 @@ export type PullRequest = {|
|
|||||||
+__typename: "PullRequest",
|
+__typename: "PullRequest",
|
||||||
+additions: Int,
|
+additions: Int,
|
||||||
+author: null | Actor,
|
+author: null | Actor,
|
||||||
|
+baseRefName: String,
|
||||||
+body: String,
|
+body: String,
|
||||||
+comments: $ReadOnlyArray<null | IssueComment>,
|
+comments: $ReadOnlyArray<null | IssueComment>,
|
||||||
+createdAt: DateTime,
|
+createdAt: DateTime,
|
||||||
|
@ -63,6 +63,7 @@ export default function schema(): Schema.Schema {
|
|||||||
reviews: s.connection("PullRequestReview"),
|
reviews: s.connection("PullRequestReview"),
|
||||||
reactions: s.connection("Reaction"),
|
reactions: s.connection("Reaction"),
|
||||||
createdAt: s.primitive(s.nonNull("DateTime")),
|
createdAt: s.primitive(s.nonNull("DateTime")),
|
||||||
|
baseRefName: s.primitive(s.nonNull("String")),
|
||||||
}),
|
}),
|
||||||
IssueComment: s.object({
|
IssueComment: s.object({
|
||||||
id: s.id(),
|
id: s.id(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user