|
27 | 27 |
|
28 | 28 | requireCI bool
|
29 | 29 | mustBeApproved bool
|
30 |
| - autoclose bool |
| 30 | + noAutoclose bool |
31 | 31 | updateBranch bool
|
32 | 32 | reposFile string
|
33 | 33 | minimum int
|
@@ -116,7 +116,7 @@ func NewRootCmd() *cobra.Command {
|
116 | 116 |
|
117 | 117 | # Additional options
|
118 | 118 | gh combine owner/repo --dry-run # Simulate the actions without making any changes
|
119 |
| - gh combine owner/repo --autoclose # Close source PRs when combined PR is merged |
| 119 | + gh combine owner/repo --no-autoclose # Do not auto-close source PRs when combined PR is merged via the closes keyword |
120 | 120 | gh combine owner/repo --base-branch main # Use a different base branch for the combined PR
|
121 | 121 | gh combine owner/repo --no-color # Disable color output
|
122 | 122 | gh combine owner/repo --no-stats # Disable stats summary display
|
@@ -145,7 +145,7 @@ func NewRootCmd() *cobra.Command {
|
145 | 145 | rootCmd.Flags().BoolVar(&requireCI, "require-ci", false, "Only include PRs with passing CI checks")
|
146 | 146 | rootCmd.Flags().BoolVar(&dependabot, "dependabot", false, "Only include PRs with the dependabot branch prefix")
|
147 | 147 | rootCmd.Flags().BoolVar(&mustBeApproved, "require-approved", false, "Only include PRs that have been approved")
|
148 |
| - rootCmd.Flags().BoolVar(&autoclose, "autoclose", false, "Close source PRs when combined PR is merged") |
| 148 | + rootCmd.Flags().BoolVar(&noAutoclose, "no-autoclose", false, "Do not auto-close source PRs when combined PR is merged") |
149 | 149 | rootCmd.Flags().BoolVar(&updateBranch, "update-branch", false, "Update the branch of the combined PR if possible")
|
150 | 150 | rootCmd.Flags().StringVar(&baseBranch, "base-branch", "main", "Base branch for the combined PR (default: main)")
|
151 | 151 | rootCmd.Flags().StringVar(&combineBranchName, "combine-branch-name", "combined-prs", "Name of the combined PR branch")
|
@@ -454,8 +454,8 @@ func buildCommandString(args []string) string {
|
454 | 454 | if mustBeApproved {
|
455 | 455 | cmd = append(cmd, "--require-approved")
|
456 | 456 | }
|
457 |
| - if autoclose { |
458 |
| - cmd = append(cmd, "--autoclose") |
| 457 | + if noAutoclose { |
| 458 | + cmd = append(cmd, "--no-autoclose") |
459 | 459 | }
|
460 | 460 | if updateBranch {
|
461 | 461 | cmd = append(cmd, "--update-branch")
|
|
0 commit comments