pullrequests-update
Create or update pull requests (GitHub) and merge requests (GitLab) for pushed code/ branches, host detected per repo from origin, cross-linking companions across repos that changed together.
- License 许可
- MIT
- 最近更新
- 2026-10-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pullrequests-update
- description
- Create or update pull requests (GitHub) and merge requests (GitLab) for pushed code/ branches, host detected per repo from origin, cross-linking companions across repos that changed together.
02 资源文件 4
- 脚本scripts/update.py4.4 KB
- 脚本tests/conftest.py3.2 KB
- 脚本tests/test_update_github.py16.2 KB
- 脚本tests/test_update_gitlab.py22.6 KB
03 SKILL.md 正文
pullrequests-update
Creates or updates the PR or MR for a pushed branch across one or more repos in code/, then cross-links each description with the other PRs/MRs from the same run. The host is detected per repo from its origin, so one run may mix GitHub and GitLab repos.
Host map
Per repo, from the origin hostname: WORKBENCH_SCM_HOSTS first (host=github|gitlab, comma-separated, e.g. git.example.com=gitlab), then a hostname containing github means GitHub and one containing gitlab means GitLab. Anything else is local-only: the repo gets a skipped row local-only: no PR/MR host for <origin> and does not fail the run. A malformed WORKBENCH_SCM_HOSTS exits 2 naming the entry.
Procedure
-
Confirm the branch is already pushed for each target repo (see git-worktrees-push).
-
For each repo, write a short description in your own words: what changed and why. The first non-empty line becomes the title of a new PR/MR.
-
Optionally decide a semver level (
patch/minor/major) per repo for the push-CD release pipeline. -
Run the script once:
mise exec -- python3 ${CLAUDE_PLUGIN_ROOT}/skills/pullrequests-update/scripts/update.py --branch <branch> --repos repoA,repoB \ --body repoA="<description for repoA>" \ --body repoB="<description for repoB>" \ --semver repoA=minor -
Pass 1 creates a PR/MR (or edits the existing one) per repo. Pass 2 rewrites each body as your description plus a
Complementary PRs(GitHub repo) orComplementary MRs(GitLab repo) section listing every other PR/MR of the run, on either host, then applies the semver label. -
Relay the report (repo, status
created/updated/skipped/failed,<url> | <semver outcome>). A failure does not stop other repos; the exit code is 1 if any repo or semver step failed.
Arguments
--branchthe pushed branch;--reposcomma-separated names of submodules undercode/.--body repo=textone per repo; a missing body is a per-repo failure.--semver repo=LEVELoptional; labelssemver:<LEVEL>, created if missing. An invalid level is a per-repo failure. An existingsemver:*label is never changed (semver skipped (has semver:<x>)). No--semvershows-.
04 同仓库更多 Skills
claudy
d claudy
gamma
Literal line one. Literal line two.
beta
Quoted: description with a colon.
alpha
Folded description that spans two lines and ends here.
worktree-merge
Rebases one subagent's worktree onto the base branch, optionally verifies the rebased tree, fast-forwards it into the worktree that has the base checked out (an epic integration tree or the main checkout), verifies every commit landed, and only then removes the worktree and its branch. Keeps the worktree intact on any conflict, dirty tree, or failed check. Use after a subagent returns work created with worktree-create.
worktree-create
Creates one isolated git worktree for one subagent, at <workbench>/.claude/worktrees/<name>, branched from main with the newest origin/main and local main merged in. Refuses a name already in use so two agents can never share a tree. Use once per implementation or review subagent before dispatching it; pair with worktree-merge to land the work and clean up.