Update command/pr.go

Co-authored-by: Billy Griffin <5091167+billygriffin@users.noreply.github.com>
This commit is contained in:
Corey Johnson 2020-05-18 14:39:29 -07:00 committed by GitHub
parent b42f5527fd
commit 9721f75b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)