Files

1.9 KiB
Raw Permalink Blame History

Git Conventions

Branch Naming

<type>/<short-kebab-case-description>
  • All lowercase, hyphens only — no camelCase or Title-Case
  • Keep the description short (3–5 words); the branch name is not the place for detail
  • If the branch belongs to an issue, include its number right after the type: feature/12-comment-upsert. Deverenz reads the ticket from this number.
Type Use for
feature/ New functionality
fix/ Bug fixes
refactor/ Code changes with no behavior change
chore/ Tooling, deps, config, cleanup
docs/ Documentation only

Example: feature/webhook-server


Commit Messages

Follow Conventional Commits:

<type>(<scope>): <imperative, present-tense summary>

<optional body — explain WHY, not WHAT>
  • Type — feat, fix, refactor, chore, docs, test, style (feat is the commit type for feature/ branches)
  • Scope — the module touched (e.g. webhook, gitea, diff, summarize, render, cli, config, docker). Leave it out for changes across the whole repo.
  • Summary — imperative mood ("add", not "added" or "adds"); no period at the end
  • Body — only when the reasoning isn't obvious from the diff (a constraint, a bug workaround, a decision). Skip it for simple/self-explanatory changes.
  • No AI attribution lines (Co-Authored-By, "Generated with …").

Examples:

feat(summarize): retry once with validation error on invalid JSON
fix(webhook): verify signature against raw body before parsing
style: reformat
refactor(gitea): move comment lookup behind Forge protocol

Ticket Titles

Frame as the outcome, not a task log:

<Type>: <what changes for the user/system>

Examples:

  • Feature: Post PR summary as a single updatable comment
  • Bug: Webhook ignored when PR is reopened
  • Chore: Drop lockfiles from diff before LLM call