.github/workflows: add issue label automation

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-04-25 14:02:53 +02:00
parent e90107288d
commit 2aa318a4bb
@@ -0,0 +1,19 @@
name: Automate issue labels
on:
issues:
types:
- labeled
jobs:
stale:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- name: Remove needs:triage label
uses: actions-ecosystem/action-remove-labels@v1
if: ${{ startsWith(github.event.label.name, 'priority:') || ( startsWith(github.event.label.name, 'needs:') && github.event.label.name != 'needs:triage' ) }}
with:
labels: needs:triage