1.7 KiB
1.7 KiB
Contributing Workflow
Use this guidance when you spin up a new project from the template or accept contributions from collaborators.
Branching model
- Work from short-lived topic branches cut from
main. - Prefix branches with the work type:
feat/,fix/,docs/,chore/,refactor/,test/. - Keep branch names descriptive but short (e.g.
feat/billing-invoices,fix/auth-timeout).
Commit messages
Follow Conventional Commits.
<type>(<scope>): <subject>
Examples:
feat(api): add artist listing endpointfix(infra): handle wrangler env missingdocs(adr): record storage strategy
Pull request checklist
- Rebase onto
mainbefore opening the PR. - Fill out
.gitea/pull_request_template.mdso reviewers know how to test. - Ensure automated checks pass locally:
Adjust the commands if your project uses a different toolchain.pnpm install pnpm lint pnpm test pnpm build - Link issues with
Fixes #idorRefs #idas appropriate. - Squash-merge once approved to keep history clean (use the Conventional Commit format for the squash message).
Quality expectations
- Keep docs current. Update the README, edge-case catalogue, or stack decisions when behaviour changes.
- Add or update tests alongside your changes—tests are treated as executable documentation.
- Avoid committing secrets or large binaries; rely on
.envfiles, secret managers, or storage buckets instead.
Questions?
Open an issue or start a draft PR and document what you are unsure about. Future readers will thank you for the breadcrumbs.