1d91db3e31
Gitea fires the pull_request push event as 'synchronize' (GitHub spec), not 'synchronized'. The typo meant the workflow only ran on opened/ edited/reopened, leaving the required check yellow with no details link after every commit push.
19 lines
447 B
YAML
19 lines
447 B
YAML
name: tracker-policy-pr
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, reopened, synchronize, 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
|