-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle pull request files returned as null (#1651)
* test: add failing test for graphQL not returning file nodes * fix: handle pull request files returned as null * fix pagination handling
- Loading branch information
Showing
4 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"repository": { | ||
"ref": { | ||
"target": { | ||
"history": { | ||
"nodes": [ | ||
{ | ||
"associatedPullRequests": { | ||
"nodes": [ | ||
{ | ||
"number": 7, | ||
"title": "feat: feature that will be plain merged", | ||
"baseRefName": "main", | ||
"headRefName": "feature-branch-plain-merge", | ||
"labels": { | ||
"nodes": [] | ||
}, | ||
"body": "", | ||
"mergeCommit": { | ||
"oid": "e6daec403626c9987c7af0d97b34f324cd84320a" | ||
}, | ||
"files": null | ||
} | ||
] | ||
}, | ||
"sha": "e6daec403626c9987c7af0d97b34f324cd84320a", | ||
"message": "Merge pull request #7 from chingor13/feature-branch-plain-merge\n\nfeat: feature that will be plain merged" | ||
}, | ||
{ | ||
"associatedPullRequests": { | ||
"nodes": [ | ||
{ | ||
"number": 7, | ||
"title": "feat: feature that will be plain merged", | ||
"baseRefName": "main", | ||
"headRefName": "feature-branch-plain-merge", | ||
"labels": { | ||
"nodes": [] | ||
}, | ||
"body": "", | ||
"mergeCommit": { | ||
"oid": "b29149f890e6f76ee31ed128585744d4c598924c" | ||
}, | ||
"files": { | ||
"nodes": [] | ||
} | ||
} | ||
] | ||
}, | ||
"sha": "b29149f890e6f76ee31ed128585744d4c598924c", | ||
"message": "feat: feature-branch-plain-merge commit 2" | ||
} | ||
], | ||
"pageInfo": { | ||
"hasNextPage": false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters