ワンクリックで
pr-merge-cleanup
Verify that the local branch was up-to-date with what got merged in a PR, before deleting the local branch.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Verify that the local branch was up-to-date with what got merged in a PR, before deleting the local branch.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Begin a review for a set of changes in a PR
Create a new Pull Request (PR)
Read reseach, context and intention to create plan doc
Get a deep understanding of a system, and write reseach doc
Update the description of an existing Pull Request (PR)
Begin implementing from a plan doc
| name | pr-merge-cleanup |
| description | Verify that the local branch was up-to-date with what got merged in a PR, before deleting the local branch. |
this feature branch has been merged on origin (github) via pull request.
i would now like to confirm that there are no lingering local edits that i forgot to push, and ensure that the feature branch has no diffs from the latest, post-merge main before deleting the local copy of the branch.
first echo out the name of the current branch, so i know what context you're working with. then, on the current feature branch, run the following:
git push origin @
if there are ANY changes that are pushed, that means i missed those changes and they were not merged, please warn me and exit immediately.
then run:
git status
if there are ANY staged but uncommitted files, exit immediately.
if there are unstaged changes to tracked files, simply warn but continue
do not bother to warn about changes to untracked files.
then pull the latest main code into this branch using
git pull origin main
main branch codenow let's check out the main branch and get the latest code there, after the PR was merged:
git checkout main
git pull origin main
main against my feature branchwhile still running on main branch, run
git diff {feature_branch_name}
ensure that output is null/empty
if there is ANY diffs at all between them, exit immediately but log out the delete command below so that i can run it manually if i decide to.
if there are no deltas between the main and feature branch, then run
git branch -D {feature_branch_name}