Add workflow to auto-label new issues with needs-triage
This commit is contained in:
21
.github/workflows/auto-label-issues.yml
vendored
Normal file
21
.github/workflows/auto-label-issues.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Auto-label new issues
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-triage-label:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
await github.rest.issues.addLabels({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
labels: ["needs-triage"]
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user