feat: delegate ready issues to stable agent subjects #539
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: PR Description Check | |
| # Use pull_request_target so fork PR descriptions can be checked, but only run | |
| # trusted validation code from the base branch checkout below. | |
| on: | |
| pull_request_target: | |
| types: [opened, edited, reopened, ready_for_review, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: read | |
| jobs: | |
| validate-pr-description: | |
| name: Validate PR description | |
| # Draft PRs may still have incomplete descriptions; validate when review starts. | |
| # Release and artifact-cleanup PRs are generated by trusted workflows without | |
| # the standard human-authored PR template. | |
| if: >- | |
| github.event.pull_request.draft == false && | |
| github.event.pull_request.user.login != 'dependabot[bot]' && | |
| !(github.event.pull_request.head.repo.full_name == github.repository && | |
| (startsWith(github.event.pull_request.head.ref, 'release-please-') || | |
| (github.event.pull_request.base.ref == 'main' && | |
| github.event.pull_request.head.ref == 'automation/remove-pr-artifacts'))) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout trusted workflow scripts | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.base.sha }} | |
| - name: Validate PR template sections and linked-issue readiness | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: python .github/scripts/check_pr_description.py |