3a6fbad057
tracker-policy-pr / check-pr (pull_request) Successful in 4s
Gitea Actions reports skipped jobs as a non-success status, which caused label-issue to block PRs even though its if-condition correctly excluded it. Two dedicated workflows eliminate the skipped-job problem entirely. After merge, update the branch-protection required status context from `tracker-policy / check-pr` to `tracker-policy-pr / check-pr`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
448 B
YAML
19 lines
448 B
YAML
name: tracker-policy-pr
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, reopened, synchronized, labeled, unlabeled]
|
|
|
|
jobs:
|
|
check-pr:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: read
|
|
pull-requests: read
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Require an unlabeled PR linked to an issue
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: python3 scripts/tracker_policy.py check-pr
|