Canonical pull request and repository governance shared across Pigbibi,
GdeiAssistant, and QuantStrategyLab. It publishes verifiable check statuses;
branch protection, not this repository, enforces merges.
| Path | Purpose |
|---|---|
pr-governance/ |
Canonical GitHub Action, policy schema, and caller templates. |
pr-governance/actions/ |
Reusable composite actions such as scan-before-publish. |
pr-governance/templates/ |
Caller workflows consumed via CodeGovernanceLab/PrGovernance/pr-governance@<sha>. |
local/ |
Git hooks, private-repo merge gate, and check_hygiene.py. |
.github/workflows/ |
Action checks, reusable gitleaks.yml, and repository hygiene checks. |
Public repositories consume the canonical GitHub Action to publish pr-template,
ai-review, risk-gate, and Gitleaks statuses bound to the current pull
request head SHA.
Private repositories without protected branches run local/ Git hooks and
merge_gate.py locally with identical receipt, commit, and secret rules.
Pin downstream caller workflows across Pigbibi, GdeiAssistant, and
QuantStrategyLab to a reviewed commit SHA of CodeGovernanceLab/PrGovernance:
uses: CodeGovernanceLab/PrGovernance/pr-governance@<40-char-sha>The action always reads .github/governance/policy.json from the repository's
default branch so pull requests cannot weaken their own gate.
A private repository installs hooks from a clean checkout:
git clone https://github.com/CodeGovernanceLab/PrGovernance
python3 PrGovernance/local/governance.py install --root <repository> \
--source PrGovernance/localThe action never checks out pull request code, pushes commits, modifies labels, or merges pull requests. Screenshots and prose claims are not evidence; a signed-off reviewer receipt bound to the current head SHA is required.
See pr-governance/README.md for risk tiers and local/README.md for local hook enforcement.
See CONTRIBUTING.md and SECURITY.md.
Licensed under the MIT License.