Fix pr checkout OWNER:BRANCH when maintainer can modify
We did not use to request the necessary GraphQL fields to determine whether the PR in question can be modified by maintainers (i.e. pushed back to).
This commit is contained in:
parent
7b225bf1c9
commit
e084a4563f
1 changed files with 4 additions and 0 deletions
|
|
@ -540,8 +540,12 @@ func PullRequestForBranch(client *Client, repo ghrepo.Interface, baseBranch, hea
|
|||
headRepositoryOwner {
|
||||
login
|
||||
}
|
||||
headRepository {
|
||||
name
|
||||
}
|
||||
isCrossRepository
|
||||
isDraft
|
||||
maintainerCanModify
|
||||
reviewRequests(first: 100) {
|
||||
nodes {
|
||||
requestedReviewer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue