Add Allow Maintainer Edits #509
|
@ -34,6 +34,7 @@ var CmdPullsCreate = cli.Command{
|
|||
Name: "allow-maintainer-edits",
|
||||
Aliases: []string{"edits"},
|
||||
Usage: "Enable maintainers to push to the base branch of created pull",
|
||||
Default: true,
|
||||
},
|
||||
}, flags.IssuePREditFlags...),
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ func CreatePull(ctx *context.TeaContext) (err error) {
|
|||
return err
|
||||
}
|
||||
|
||||
promptC := &survey.Confirm{Message: "Allow Maintainers to push to pull base-branch", Default: false}
|
||||
promptC := &survey.Confirm{Message: "Allow Maintainers to push to the base branch", Default: true}
|
||||
6543 marked this conversation as resolved
Outdated
|
||||
if err := survey.AskOne(promptC, &allowMaintainerEdits); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user
Also maybe default to true?