mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 06:39:25 +08:00
chore(issues): Add auto status:needs-triage labeling workflow (#27138)
Adds a gha workflow that applies the `status:needs-triage` label to every newly opened issue. This gives maintainers a clear queue of unreviewed issues and lets them remove the label once the issue has been triaged and more specific labels have been assigned. Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: Issue Triage Label
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
add-triage-label:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Add status:needs-triage label to new issues
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
await github.rest.issues.addLabels({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.payload.issue.number,
|
||||
labels: ['status:needs-triage'],
|
||||
});
|
||||
Reference in New Issue
Block a user