Skip to content

Commit a657fa8

Browse files
committed
pr checks: fix error message when no checks were found
Fixes the error message: no checks reported on the '' branch Now the correct branch name is reported.
1 parent e361fd4 commit a657fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/pr/checks/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func checksRun(opts *ChecksOptions) error {
134134
for {
135135
findOptions := shared.FindOptions{
136136
Selector: opts.SelectorArg,
137-
Fields: []string{"number", "baseRefName", "statusCheckRollup"},
137+
Fields: []string{"number", "headRefName", "statusCheckRollup"},
138138
}
139139
pr, _, err := opts.Finder.Find(findOptions)
140140
if err != nil {

0 commit comments

Comments
 (0)