Skip to content

Commit

Permalink
Allow API request to be made if the PR is in an unknown state
Browse files Browse the repository at this point in the history
  • Loading branch information
dyl10s committed Dec 9, 2020
1 parent f415245 commit f853a4b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/cmd/pr/merge/merge.go
Expand Up @@ -123,9 +123,6 @@ func mergeRun(opts *MergeOptions) error {
if pr.Mergeable == "CONFLICTING" {
err := fmt.Errorf("%s Pull request #%d (%s) has conflicts and isn't mergeable ", cs.Red("!"), pr.Number, pr.Title)
return err
} else if pr.Mergeable == "UNKNOWN" {
err := fmt.Errorf("%s Pull request #%d (%s) can't be merged right now; try again in a few seconds", cs.Red("!"), pr.Number, pr.Title)
return err
} else if pr.State == "MERGED" {
err := fmt.Errorf("%s Pull request #%d (%s) was already merged", cs.Red("!"), pr.Number, pr.Title)
return err
Expand Down

0 comments on commit f853a4b

Please sign in to comment.