We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57f49d9 commit 0f1aaaeCopy full SHA for 0f1aaae
pkg/cmd/pr/shared/commentable.go
@@ -68,10 +68,6 @@ func CommentablePreRun(cmd *cobra.Command, opts *CommentableOptions) error {
68
return cmdutil.FlagErrorf("flags required when not running interactively")
69
}
70
opts.Interactive = true
71
- } else if inputFlags == 1 {
72
- if !opts.IO.CanPrompt() && opts.InputType == InputTypeEditor {
73
- return cmdutil.FlagErrorf("`--body`, `--body-file` or `--web` required when not running interactively")
74
- }
75
} else if inputFlags > 1 {
76
return cmdutil.FlagErrorf("specify only one of `--body`, `--body-file`, `--editor`, or `--web`")
77
0 commit comments