We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d88055 commit c9a37adCopy full SHA for c9a37ad
internal/ghpr/ghpr_mergable.go
@@ -38,7 +38,7 @@ func (pr *PullRequest) SatisfiesMergeRequirements(ctx context.Context, opts ...P
38
}
39
40
pull, err := mopts.ghClient.GetPullRequest(ctx, pr.ghOrg, pr.ghRepo, pr.ghPrId)
41
- if err != nil {
+ if err != nil || pull == nil {
42
return false, nil, fmt.Errorf("could not get pull request: %w", err)
43
44
0 commit comments