mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Add Allow Maintainer Edits (#509)
close #508 Reviewed-on: https://gitea.com/gitea/tea/pulls/509 Reviewed-by: Norwin <noerw@noreply.gitea.io> Reviewed-by: strk <strk@noreply.gitea.io>
This commit is contained in:
		| @@ -30,6 +30,12 @@ var CmdPullsCreate = cli.Command{ | ||||
| 			Aliases: []string{"b"}, | ||||
| 			Usage:   "Branch name of the PR target (default is repos default branch)", | ||||
| 		}, | ||||
| 		&cli.BoolFlag{ | ||||
| 			Name:    "allow-maintainer-edits", | ||||
| 			Aliases: []string{"edits"}, | ||||
| 			Usage:   "Enable maintainers to push to the base branch of created pull", | ||||
| 			Value:   true, | ||||
| 		}, | ||||
| 	}, flags.IssuePREditFlags...), | ||||
| } | ||||
|  | ||||
| @@ -51,6 +57,7 @@ func runPullsCreate(cmd *cli.Context) error { | ||||
| 		ctx, | ||||
| 		ctx.String("base"), | ||||
| 		ctx.String("head"), | ||||
| 		ctx.Bool("allow-maintainer-edits"), | ||||
| 		opts, | ||||
| 	) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543