feat(scripts): open PRs with pr.sh open instead of the MCP #44

Merged
piscis merged 1 commit from piscis/pr-open into main 2026-10-10 07:58:40 +00:00
Owner

Follow-up to #41 and #43. Opening a PR through the Forgejo MCP's create_pull_request returns the whole PR object (about 6.7k characters, mostly repo metadata), and the MCP breaks when its session has no token.

  • scripts/pr.sh open "<title>" opens a PR from the pushed current branch to the default branch, with the body on stdin. It prints only number, url and head.
  • If the branch already has an open PR, it prints that one instead of opening a second.
  • On the default branch it stops: on main: switch to a work branch first.
  • /land-pr step 4 and docs/agents/forgejo.md now use it.

Tested: this PR was opened with pr.sh open, and running it again returned the same PR. The guard fails on main. shellcheck is clean.

Follow-up to #41 and #43. Opening a PR through the Forgejo MCP's `create_pull_request` returns the whole PR object (about 6.7k characters, mostly repo metadata), and the MCP breaks when its session has no token. - `scripts/pr.sh open "<title>"` opens a PR from the pushed current branch to the default branch, with the body on stdin. It prints only `number`, `url` and `head`. - If the branch already has an open PR, it prints that one instead of opening a second. - On the default branch it stops: `on main: switch to a work branch first`. - `/land-pr` step 4 and `docs/agents/forgejo.md` now use it. Tested: this PR was opened with `pr.sh open`, and running it again returned the same PR. The guard fails on `main`. shellcheck is clean.
feat(scripts): open PRs with pr.sh open instead of the MCP
All checks were successful
ci / build (pull_request) Successful in 29s
4b68a06151
piscis merged commit cdc524636e into main 2026-10-10 07:58:40 +00:00
piscis deleted branch piscis/pr-open 2026-10-10 07:58:40 +00:00
Sign in to join this conversation.
No description provided.