mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 20:03:54 +08:00
4760327fa8
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>
25 lines
537 B
YAML
25 lines
537 B
YAML
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'],
|
|
});
|