From ded5c24c40e7e5c1a3f48c12fcfe8e92e28c0f72 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 17 Mar 2026 20:59:38 +0100 Subject: [PATCH] doc: add branching and PR rules to collaboration guide All changes must go through a feature branch and PR for review before merging to main. Co-Authored-By: Claude Sonnet 4.6 --- COLLABORATING.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/COLLABORATING.md b/COLLABORATING.md index 45cd6984..871d70a9 100644 --- a/COLLABORATING.md +++ b/COLLABORATING.md @@ -56,6 +56,30 @@ Examples: - `needs-discussion` — decision needed before work starts - `wontfix` — acknowledged, not addressing +## Branching and Pull Requests + +All changes go through a branch and a pull request — never commit directly to `main`. + +### Branch naming + +``` +/ +``` + +Examples: +- `feat/received-documents-person-page` +- `fix/tag-filter-url-sync` +- `devops/docker-compose-v2` + +### Workflow + +1. Create a branch from `main` before writing any code. +2. Commit work to that branch. +3. Open a pull request on Gitea targeting `main` for review. +4. Wait for approval before merging. + +The PR description should reference the related issue (`Closes #n` or `Refs #n`). + ## Commit Messages Every commit must reference the relevant Gitea issue.