Git and PR workflow
- Sync:
git fetch origin main && git checkout main && git reset --hard FETCH_HEAD(the clone may be shallow;origin/maincan fail to resolve). - Branch:
git checkout -b S<n>/<area>/<slug>for a sprint ticket (seedocs/sprints/), otherwisefix/,docs/orchore/plus a slug. - Work in small commits. Gate before each: see
AGENTS.mdCommands. - Update
docs/HANDOFF.mdin the same PR (skillhandoff). - Commit message:
type(scope): imperative summary
Why this change, in a sentence or two.
Co-Authored-By: Abdullah Farag <[email protected]>
Co-Authored-By: <your model name> <[email protected]>
- Push:
git push -u origin <branch>. - Open the PR with the REST API (GraphQL is blocked in cloud sessions):
gh api repos/al0olo/agents-village/pulls \
-f title="type: summary" -f head=<branch> -f base=main -F body=@/tmp/pr.md --jq '.html_url'
Body: what changed, why, what you ran to check it, and anything the reviewer must decide. 8. If CI fails, read the log, fix on the same branch, push. Do not merge red. 9. Merge order: if PRs depend on each other, say so in the body and merge in order.
Never commit to main, never force-push shared branches, never skip hooks.