ci: add branch-policy workflow and gitlint config #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/add-branch-policy-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds the B3 git commit & merge policy artifacts to this repo:
.forgejo/workflows/branch-policy.yml— CI workflow validatingbranch name regex, commit messages, PR title, and PR body
structure on every pull request.
.gitlint— client-side commit-message linting config matchingwhat the CI workflow enforces.
.forgejo/PULL_REQUEST_TEMPLATE.md— skeleton with the threerequired sections (
## What/## Why/## How verified).Why
Implements B3 Decisions D1-D13 (
platform/docs/wip/B3-git-policy.md,reproduced as D19-D31 in
automation/forgejo/docs/decisions.md). This is the first per-repoPR that lands the workflow file itself; per B3 §3 chicken-and-egg
note, this PR is not gated by the workflow (it doesn't exist on
origin/mainyet). Every subsequent PR against this repo will begated by the workflow installed here.
How verified
branch-policy.yml; loads under PyYAML.gitlint --config .gitlint --debug).headings.
automation/forgejo/templates/branch-policy/viaautomation/forgejo/scripts/distribute-branch-policy.sh.Refs: B3 (
platform/docs/wip/B3-git-policy.md), in-tree decisionsD19-D31 in
automation/forgejo/docs/decisions.md.