feat(pr): add changeType field to files JSON output
Add the changeType field from the PullRequestChangedFile GraphQL type to the PullRequestFile struct. This exposes the file status (added, modified, deleted, renamed, copied, changed) in gh pr list --json files and gh pr view --json files output. Closes #11385
This commit is contained in:
parent
097bad6f73
commit
de61b2b65d
3 changed files with 8 additions and 6 deletions
|
|
@ -148,7 +148,8 @@ var prFiles = shortenQuery(`
|
|||
nodes {
|
||||
additions,
|
||||
deletions,
|
||||
path
|
||||
path,
|
||||
changeType
|
||||
}
|
||||
}
|
||||
`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue