merge
Squash-merge the open PR, pull master, and reset dev branch
- License 许可
- MIT
- 最近更新
- 2026-05-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- merge
- description
- Squash-merge the open PR, pull master, and reset dev branch
- allowed-tools
- Bash(git *, gh *)
- disable-model-invocation
- true
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md351 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Merge PR and Reset
Instructions
-
Check the current branch with
git branch --show-current. If not ondev, abort. -
Find the open PR for dev → master:
gh pr list --head dev --base master --state open --json number,title,urlIf no open PR exists, abort with an error message.
-
Squash-merge the PR:
gh pr merge NUMBER --squash --delete-branchThis will also delete the remote
devbranch. -
Switch to master and pull:
git checkout master git pull -
Delete the local dev branch if it still exists:
git branch -D dev 2>/dev/null || true -
Report success with the merged PR URL and the new commit on master.
04 同仓库更多 Skills
stop
Stop the running dev server
status
Show current branch, working tree status, and any open PR
run
Start the dev server in the background, or restart it if already running
pr
Push dev branch and create a GitHub PR to master (auto-generates title/body from commits)
pr-draft
Push dev branch and create a draft GitHub PR to master (auto-generates title/body from commits)
master
Checkout the master branch and pull latest changes