Skip to content

Commit 3806197

Browse files
authored
better error message if pr fetch failed (#39)
1 parent 4aef1d0 commit 3806197

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ func main() {
153153

154154
return fetchErr
155155
}); err != nil {
156+
if configs.PullRequestID != "" && configs.PullRequestMergeBranch != "" {
157+
log.Warnf("Failed to fetch pull request, this happens most likely because the pull request is closed or has conflict.")
158+
}
156159
log.Errorf("Failed, error: %s", err)
157160
os.Exit(1)
158161
}

0 commit comments

Comments
 (0)