From f48dbe744fa562851e528a8667b5d2cac359bcf9 Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Mon, 31 Aug 2026 10:36:50 -0500 Subject: [PATCH 1/2] fix(gh-cli): print pull request URLs Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bed3e0ff-d6c7-426a-8591-4c4b8e74705c --- gh-cli/merge-pull-requests-by-title.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gh-cli/merge-pull-requests-by-title.sh b/gh-cli/merge-pull-requests-by-title.sh index 9e6c832..104d95e 100755 --- a/gh-cli/merge-pull-requests-by-title.sh +++ b/gh-cli/merge-pull-requests-by-title.sh @@ -390,7 +390,8 @@ while IFS= read -r repo_url || [ -n "$repo_url" ]; do # Process each matching PR while IFS='|' read -r pr_number pr_title pr_author pr_branch pr_head_repo; do - echo " 📋 Found PR #$pr_number: $pr_title (by $pr_author)" + pr_url="https://github.com/$repo/pull/$pr_number" + echo " 📋 Found PR #$pr_number: $pr_title (by $pr_author) - $pr_url" if [ "$bump_patch_version" = true ]; then # Skip fork-based PRs since we can't push to the head repo @@ -435,9 +436,9 @@ while IFS= read -r repo_url || [ -n "$repo_url" ]; do fi fi if gh pr merge "$pr_number" --repo "$repo" "${auto_merge_args[@]}"; then - echo " 🔄 Auto-merge enabled for $repo#$pr_number" + echo " 🔄 Auto-merge enabled for $pr_url" else - echo " ⚠️ Failed to enable auto-merge for $repo#$pr_number" + echo " ⚠️ Failed to enable auto-merge for $pr_url" ((fail_count++)) fi fi @@ -478,7 +479,7 @@ while IFS= read -r repo_url || [ -n "$repo_url" ]; do merge_args+=("--auto") fi if [ "$dry_run" = true ]; then - echo " 🔍 Would merge $repo#$pr_number with: gh pr merge $pr_number --repo $repo ${merge_args[*]}" + echo " 🔍 Would merge $pr_url with: gh pr merge $pr_number --repo $repo ${merge_args[*]}" ((success_count++)) else # Prompt for confirmation unless --no-prompt was passed @@ -489,20 +490,20 @@ while IFS= read -r repo_url || [ -n "$repo_url" ]; do fi read -r -p " ❓ Merge $repo#$pr_number? [y/N] " confirm < /dev/tty if [[ ! "$confirm" =~ ^[Yy]$ ]]; then - echo " ⏭️ Skipped $repo#$pr_number" + echo " ⏭️ Skipped $pr_url" ((skipped_count++)) continue fi fi if gh pr merge "$pr_number" --repo "$repo" "${merge_args[@]}"; then if [ "$enable_auto_merge" = true ]; then - echo " 🔄 Auto-merge enabled for $repo#$pr_number" + echo " 🔄 Auto-merge enabled for $pr_url" else - echo " ✅ Successfully merged $repo#$pr_number" + echo " ✅ Successfully merged $pr_url" fi ((success_count++)) else - echo " ❌ Failed to merge $repo#$pr_number" + echo " ❌ Failed to merge $pr_url" ((fail_count++)) fi fi From 767f760501825f35ab8eee73509d7c113c52bf56 Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Mon, 31 Aug 2026 11:12:48 -0500 Subject: [PATCH 2/2] fix(gh-cli): link fork skip output Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bed3e0ff-d6c7-426a-8591-4c4b8e74705c --- gh-cli/merge-pull-requests-by-title.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gh-cli/merge-pull-requests-by-title.sh b/gh-cli/merge-pull-requests-by-title.sh index 104d95e..f0815ec 100755 --- a/gh-cli/merge-pull-requests-by-title.sh +++ b/gh-cli/merge-pull-requests-by-title.sh @@ -396,7 +396,7 @@ while IFS= read -r repo_url || [ -n "$repo_url" ]; do if [ "$bump_patch_version" = true ]; then # Skip fork-based PRs since we can't push to the head repo if [ "$pr_head_repo" != "$repo" ]; then - echo " ⚠️ Skipping $repo#$pr_number - fork-based PR ($pr_head_repo), cannot push to branch" + echo " ⚠️ Skipping $pr_url - fork-based PR ($pr_head_repo), cannot push to branch" ((skipped_count++)) continue fi