Git Workflow
Branch naming, commit conventions, and rebase expectations used in the Anvio repository.
3 min read
Anvio's docs/22-contributing.md keeps the process short by design: fork, branch from main, follow existing style, add tests, update docs, open a PR. This page fills in the conventions actually used in the repository's own commit history so your branch and commits look native alongside the project's.
Branching
Fork the repository and branch from main. There is no long-lived develop branch — main is the integration branch and the source of truth for releases (tags are cut directly from it; see the release.yml workflow).
Anvio's own worktree tooling (anvio worktree create --agent <name> --branch <branch>) uses branch names like feat/auth, which matches the type/short-description convention below.
| Prefix | Use for |
|---|---|
feat/… | New functionality |
fix/… | Bug fixes |
docs/… | Documentation-only changes |
test/… | Test-only changes |
chore/… or ci/… | Tooling, dependencies, CI config |
Commit messages
The repository consistently uses Conventional Commits (type(scope): summary), visible directly in git log:
feat(tools): expose Honcho memory ops as gateway tools (honcho_tool)
feat(runtimes): add Nous Portal OAuth, Singularity runtime, and Atropos live fallback
docs: correct stale gap-register and refresh tool-count references
ci: automate hermes-tech skills catalog sync
fix(ci): resolve pnpm version conflict in GitHub Actions
test(p14): integration specs, workflow→skill doc, Langfuse dashboard
release: v1.21.1 — OAuth runtimes, chain fallback, Antigravity auto-installConventions observed:
- Type is one of
feat,fix,docs,test,ci,chore, orrelease. - Scope is usually a package or subsystem name in parentheses —
(tools),(runtimes),(cli),(platform),(ci)— and is omitted for repo-wide changes like plaindocs:commits. - Summary is written in the imperative, lower case after the colon, no trailing period.
- Release commits use the special
release: vX.Y.Z — <highlights>form and correspond 1:1 with aCHANGELOG.mdentry and av*.*.*git tag (see Release process in the changelog).
Keep commits scoped to one logical change. A feature commit that also fixes an unrelated bug should be split into two commits.
Keeping your branch current
Rebase your branch on top of main rather than merging main into it — this keeps history linear and matches the pattern in the existing log (no merge-commit noise between feature commits and release commits).
git fetch origin
git rebase origin/mainResolve conflicts locally, run pnpm test and pnpm typecheck again after rebasing, then force-push your feature branch (never main):
git push --force-with-lease origin your-branchTags and releases
Releases are cut by tagging main directly — there is no separate release branch:
git tag -a v1.21.2 -m "Anvio v1.21.2"
git push origin main --tagsPushing a v*.*.* tag triggers the Release GitHub Actions workflow, which re-validates lint/typecheck/build/test, then extracts the matching ## [X.Y.Z] section from CHANGELOG.md to publish as GitHub Release notes. As a contributor you generally won't cut releases yourself — this section exists so the tag-driven release flow doesn't surprise you when reviewing release: commits.
Last updated on