chore: add scripts/pr.sh and the land-pr skill for landing PRs #41
No reviewers
Labels
No labels
bug
enhancement
needs-info
needs-triage
ready-for-agent
ready-for-human
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
vicoli-oss/docker-forgejo-mcp!41
Loading…
Reference in a new issue
No description provided.
Delete branch "piscis/pr-script-land-pr"
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?
Agents wrote the same CI polling loop and merge check by hand for every PR, and pulled in the interactive shell's prompt noise along the way. This PR replaces that hand-written code with a script and a skill.
scripts/pr.sh wait <rev>waits for the combined commit status and exits 0 only when it issuccess.scripts/pr.sh merge <n> <sha>squash-merges as<title> (#n). Throughhead_commit_id, Forgejo refuses the merge if the PR moved past<sha>. Afterwards the script confirms on the API that the PR is merged and its branch is deleted.$FORGEJO_TOKEN. If it isn't set, they fall back tozsh -licthemselves./land-pr(user-invoked) runs the whole flow: branch, commit, rebase, push, PR, wait, merge and sync. Each step ends on a check you can verify.docs/agents/forgejo.mdnow points at the script and the skill instead of restating the endpoints.This PR is landed with
/land-pritself.