mergify-stack
Installation
SKILL.md
Mergify Stack Workflow
First: Does This Repository Use Stacks?
This skill applies only to a repository that uses Mergify stacks. Check before anything else:
mergify stack hooks # commit-msg "Wrapper: installed" (or "legacy") → uses stacks
git log -n 20 --format=%B | grep -c '^Change-Id: I' # any match → uses stacks
- Either check passes: follow this skill. If only the trailers are there (the commit-msg wrapper is
not installedin this clone), runmergify stack setuponce before committing: the hook is what adds theChange-Idtrailer, andmergify stack pushrefuses a commit without one. - Neither passes, or
mergifyis not installed: the repository does not use stacks. Ignore the rest of this skill and use plaingitandgh, following the repository's own conventions. Do not runmergify stack setupor suggest it.
Stack Philosophy
A branch is a stack. Keep stacks short and focused:
- A stack should only contain commits that depend on each other
- Rationale: longer stacks take longer to merge