Add pr list and pr merge commands #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pr-merge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds two commands:
fgj pr list: lists pull requests, open ones by default. Filters:--state open|closed|merged|all,--author,--label(repeatable),--milestone,--sort. Also has--limit(default 30,0= all) and--json.fgj pr merge [NUMBER]: merges a PR, or the open PR for the current branch.head_commit_id), so a push in the meantime makes the merge fail withhead out of date.--automerges once checks pass (v15 answers 201 when it schedules and 200 when it merges at once), and--cancel-autocancels.--yesis passed.Found on the real server: once a PR's head branch is deleted, v15 reports
head.refasrefs/pull/N/head. Branch names are now read fromhead.label.Testing
pr listwas run against git.markow.dev and shows PRs #1–#3 with the correct branches.pr mergewas checked against git.markow.dev only for its refusals (already-merged PR, branch without a PR). A real merge hasn't been run yet; merging this PR withfgj pr mergewould be the first.auth login --helpscopes andAGENTS.mdare updated.🤖 Generated with Claude Code