Skip to content

Commit e084a45

Browse files
committed
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).
1 parent 7b225bf commit e084a45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/queries_pr.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,12 @@ func PullRequestForBranch(client *Client, repo ghrepo.Interface, baseBranch, hea
540540
headRepositoryOwner {
541541
login
542542
}
543+
headRepository {
544+
name
545+
}
543546
isCrossRepository
544547
isDraft
548+
maintainerCanModify
545549
reviewRequests(first: 100) {
546550
nodes {
547551
requestedReviewer {

0 commit comments

Comments
 (0)