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