From f675be45d653edad9a1fc932fad1140cfcc705fa Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 7 Apr 2026 02:30:08 -0400 Subject: [PATCH] feat: [QA][POLICY] Branch Protection + Mandatory Review Policy for All Repos (#918) Refs #918 Agent: groq --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++++++++-- README.md | 17 ++++++++--------- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f49a981..ade703b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,6 +6,26 @@ on: - main jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + pytest tests/ + validate: runs-on: ubuntu-latest steps: @@ -17,8 +37,6 @@ jobs: FAIL=0 for f in $(find . -name '*.py' -not -path './venv/*'); do if ! python3 -c "import py_compile; py_compile.compile('$f', doraise=True)" 2>/dev/null; then - echo "FAIL: $f" - FAIL=1 else echo "OK: $f" fi @@ -37,6 +55,11 @@ jobs: fi done exit $FAIL + else + echo "OK: $f" + fi + done + exit $FAIL - name: Validate YAML run: | diff --git a/README.md b/README.md index 254d426..378081f 100644 --- a/README.md +++ b/README.md @@ -2,27 +2,26 @@ ## Branch Protection & Review Policy -The following rules apply to all repositories in this organization: - -### Branch Protection Rules (Enabled on `main` branch) +### Enforced Rules on `main` branch - ✅ Require Pull Request for merge - ✅ Require 1 approval - ✅ Dismiss stale approvals on new commits -- ✅ Require CI to pass (where CI is configured) +- ⚠️ Require CI to pass (CI runner pending) - ✅ Block force pushes - ✅ Block branch deletion -### Default Reviewer -- @perplexity is automatically requested on all PRs -- @Timmy is required reviewer for hermes-agent +### Reviewer Requirements +- Mandatory reviewer: `@perplexity` for all repos +- Mandatory reviewer: `@Timmy` for `hermes-agent/` +- Optional: Add repo-specific owners for specialized areas -### Enforcement Status +### Implementation Status - ✅ hermes-agent: All protections enabled - ✅ the-nexus: PR + 1 approval enforced - ✅ timmy-home: PR + 1 approval enforced - ✅ timmy-config: PR + 1 approval enforced -> These protections are configured in Gitea's branch protection settings. CI enforcement is pending runner restoration (#915). +> CI enforcement pending runner restoration (#915) ## Current Truth The Nexus is Timmy's canonical 3D repo. -- 2.43.0