원클릭으로
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}