Skip to content

Commit

Permalink
Handle HiddenPatches in PatchSet response (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnugget authored Jun 3, 2020
1 parent 8c11f03 commit c7263dc
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions cmd/src/patch_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,45 @@ fragment PatchSetFields on PatchSet {
id
patches(first: %d) {
nodes {
repository {
__typename
... on HiddenPatch {
id
name
url
}
diff {
fileDiffs {
rawDiff
diffStat {
added
deleted
changed
}
nodes {
oldPath
newPath
hunks {
body
section
newRange { startLine, lines }
oldRange { startLine, lines }
oldNoNewlineAt
}
stat {
... on Patch {
repository {
id
name
url
}
diff {
fileDiffs {
rawDiff
diffStat {
added
deleted
changed
}
oldFile {
name
externalURLs {
serviceType
url
nodes {
oldPath
newPath
hunks {
body
section
newRange { startLine, lines }
oldRange { startLine, lines }
oldNoNewlineAt
}
stat {
added
deleted
changed
}
oldFile {
name
externalURLs {
serviceType
url
}
}
}
}
Expand Down

0 comments on commit c7263dc

Please sign in to comment.