PureXML/third_party/rules-swift/.github/workflows/labeler.yml

19 lines
597 B
YAML

name: issue-priority-labeler
# git-discipline.md Rule 1.6 "Forms gotcha": dropdown selections are TEXT in the body,
# they do not auto-apply as labels. This translates the Priority dropdown into the
# `priority: high` label when, and only when, the chosen value is "high".
on:
issues:
types: [opened, edited]
permissions:
issues: write
jobs:
apply-priority-label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Synchronize the priority label
env:
FORGEJO_TOKEN: ${{ forgejo.token }}
run: sh scripts/sync-priority-label.sh