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>
18 lines
372 B
YAML
18 lines
372 B
YAML
name: tracker-policy-issues
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, unlabeled]
|
|
|
|
jobs:
|
|
label-issue:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Ensure the issue has a label
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: python3 scripts/tracker_policy.py label-issue
|