Add Allow Maintainer Edits #509

Merged
6543 merged 12 commits from 6543/tea:add_allow-maintainer-edits into main 2022-09-27 15:36:36 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 813c3734d4 - Show all commits

View File

@ -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...),
}

View File

@ -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
Outdated
Review
-	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: false} 

Also maybe default to true?

```diff - 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: false} ``` Also maybe default to true?
if err := survey.AskOne(promptC, &allowMaintainerEdits); err != nil {
return err
}