Update command/pr.go
Co-authored-by: Billy Griffin <5091167+billygriffin@users.noreply.github.com>
This commit is contained in:
parent
b42f5527fd
commit
9721f75b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ func prReady(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if pr.Closed {
|
||||
err := fmt.Errorf("%s Pull request #%d is closed and can't be marked \"ready for review\"", utils.Red("!"), pr.Number)
|
||||
err := fmt.Errorf("%s Pull request #%d is closed. Only draft pull requests can be marked as \"ready for review\"", utils.Red("!"), pr.Number)
|
||||
return err
|
||||
} else if !pr.IsDraft {
|
||||
fmt.Fprintf(colorableErr(cmd), "%s Pull request #%d was already marked as \"ready for review\"\n", utils.Yellow("!"), pr.Number)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue