Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

async-post-commit-hook-commit-orphaned-by-squash-merge

النجوم٢
التفرعات٠
آخر تحديث٨ يوليو ٢٠٢٦ في ١١:٠٩

In a repo with an ASYNC/background post-commit hook (one that fires after a commit and creates its OWN follow-up commit — `[auto-docs] …`, a docs/site regen, a changelog/checkbox tick), the hook's commit can land LOCAL-ONLY *after* your `git push` already captured just your work commit, so it is never in the PR and gets ORPHANED + silently lost when the squash-merged branch is deleted. Use when: (1) you pushed a fix, PR'd it, and squash-merged, then a later `git status -sb` shows your feature branch is `[ahead 1]` (or ahead N) of its `origin/<branch>` tracking ref even though "everything merged"; (2) that extra commit is authored by a background hook (message prefix `[auto-docs]`, `chore: regenerate …`, no human author intent) and contains REAL content (a corrected design/doc, a regenerated site asset); (3) you're about to delete the merged branch / move on and would lose it. The cause: the hook runs asynchronously ("running doc update in background…"), so `git push -u origin` completes BEFORE the hook commit

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly