[groq] [QA][POLICY] Branch Protection + Mandatory Review Policy for All Repos (#918) #926
@@ -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: |
|
||||
|
||||
17
README.md
17
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.
|
||||
|
||||
Reference in New Issue
Block a user