fix(gh-cli): print pull request URLs - #172
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
One skip-path message still prints $repo#$pr_number instead of a clickable PR URL, which conflicts with the PR’s stated output goal.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
gh-cli/merge-pull-requests-by-title.sh — The fork-based skip message still prints $repo#$pr_number, which isn’t a clickable URL (and… |
What changed in this PR
This PR updates the gh-cli/merge-pull-requests-by-title.sh script to print fully-qualified pull request URLs in output so results are clickable when PRs are found and when merge/auto-merge actions are taken.
Changes:
- Add a
pr_urlvariable for each matched PR and include it in “Found PR” output - Replace
$repo#$pr_numberreferences with$pr_urlin merge, auto-merge, failure, skip, and dry-run messaging (partially)
| File | Description |
|---|---|
| gh-cli/merge-pull-requests-by-title.sh | Introduces pr_url and updates merge-related output to show full PR URLs |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The stated PR goal (URLs in merge, auto-merge, failure, skip, and dry-run output) is not fully met because some messages still print $repo#$pr_number instead of a clickable URL.
Review tier: Lite
Findings: None
Issues resolved since last review (1)
| Severity | Finding |
|---|---|
gh-cli/merge-pull-requests-by-title.sh — The fork-based skip message still prints $repo#$pr_number, which isn’t a clickable URL (and… View resolved comment |
Suppressed comments (1)
gh-cli/merge-pull-requests-by-title.sh:394
- The PR description says output should use clickable URLs for merge, auto-merge, failure, skip, and dry-run, but this change only updates some messages. In this script there are still outputs that print
$repo#$pr_number(e.g., status-check failure skip and several bump-version failure paths), so the behavior doesn’t fully match the stated goal.
pr_url="https://github.com/$repo/pull/$pr_number"
echo " 📋 Found PR #$pr_number: $pr_title (by $pr_author) - $pr_url"
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bed3e0ff-d6c7-426a-8591-4c4b8e74705c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bed3e0ff-d6c7-426a-8591-4c4b8e74705c
f2033b9 to
767f760
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 14d24b4b-af6d-42d0-8743-bbda5d4767a8

Summary