You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gh-cli/README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1483,17 +1483,20 @@ Creates a (mostly) empty migration for a given organization repository so that i
1483
1483
1484
1484
### merge-pull-requests-by-title.sh
1485
1485
1486
-
Finds and merges pull requests matching a title pattern across multiple repositories. Useful for batch merging Dependabot PRs or other automated PRs with similar titles.
1486
+
Finds and merges pull requests matching a title pattern across multiple repositories. Useful for batch merging Dependabot PRs or other automated PRs with similar titles. By default, prompts for confirmation before each merge; use `--no-prompt` to skip.
1487
1487
1488
1488
```bash
1489
-
# Find and merge PRs with exact title match
1489
+
# Find and merge PRs with exact title match (prompts for confirmation per PR)
1490
1490
./merge-pull-requests-by-title.sh repos.txt "chore(deps-dev): bump eslint from 8.0.0 to 9.0.0"
# repo_list_file - File with repository URLs (one per line)
@@ -12,13 +12,14 @@
12
12
# commit_title - Optional: custom commit title for all merged PRs (PR number is auto-appended)
13
13
# --dry-run - Optional: preview what would be merged without actually merging
14
14
# --bump-patch-version - Optional: clone each matching PR branch, run npm version patch, commit, and push (mutually exclusive with --dry-run and merge)
15
+
# --no-prompt - Optional: merge without interactive confirmation (default is to prompt before each merge)
15
16
#
16
17
# Examples:
17
-
# # Find and merge PRs with exact title match
18
+
# # Find and merge PRs with exact title match (will prompt for confirmation)
18
19
# ./merge-pull-requests-by-title.sh repos.txt "chore(deps-dev): bump eslint-plugin-jest from 29.5.0 to 29.9.0 in the eslint group"
0 commit comments