Skip to content

docs(skills): implement v1 agent-authored-content quality program #2

docs(skills): implement v1 agent-authored-content quality program

docs(skills): implement v1 agent-authored-content quality program #2

name: Docs engineering approval
# The structural PR-contract check runs in ci.yml on every push. This separate
# gate is only for engineering-review-required PRs and listens for review
# submissions so a current-head source-owner or authorized Docs override can
# immediately update its status.
on:
pull_request:
types: [opened, labeled, synchronize, reopened, ready_for_review, edited]
pull_request_review:
types: [submitted, dismissed]
permissions:
contents: read
checks: read
pull-requests: read
jobs:
engineering-approval:
name: Docs engineering approval
runs-on: ubuntu-latest
if: >-
contains(github.event.pull_request.labels.*.name, 'warpy-factory') &&
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout repository and trusted base ref
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Evaluate the current-head human gate
env:
GH_TOKEN: ${{ github.token }}
PR_BODY: ${{ github.event.pull_request.body }}
run: |
printf '%s' "$PR_BODY" > /tmp/pr-body.md
python3 .agents/skills/doc_quality_policy/check_pr_contract.py \
--body /tmp/pr-body.md \
--repo "${{ github.repository }}" \
--pr "${{ github.event.pull_request.number }}" \
--head-sha "${{ github.event.pull_request.head.sha }}" \
--enforce-engineering-gate