infra: enforce governance sync and TASK-REQ mapping in CI (#330)
Some checks failed
Gitea CI / test (push) Has been cancelled
Gitea CI / test (pull_request) Failing after 3s

This commit is contained in:
agentson
2026-03-01 09:58:45 +09:00
parent 2406a80782
commit c31ee37f13
3 changed files with 98 additions and 1 deletions

View File

@@ -25,7 +25,19 @@ jobs:
run: python3 scripts/session_handover_check.py --strict
- name: Validate governance assets
run: python3 scripts/validate_governance_assets.py
env:
GOVERNANCE_PR_TITLE: ${{ github.event.pull_request.title }}
GOVERNANCE_PR_BODY: ${{ github.event.pull_request.body }}
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
RANGE="${{ github.event.pull_request.base.sha }}...${{ github.sha }}"
python3 scripts/validate_governance_assets.py "$RANGE"
elif [ "${{ github.event_name }}" = "push" ]; then
RANGE="${{ github.event.before }}...${{ github.sha }}"
python3 scripts/validate_governance_assets.py "$RANGE"
else
python3 scripts/validate_governance_assets.py
fi
- name: Validate Ouroboros docs
run: python3 scripts/validate_ouroboros_docs.py