Skip to content

Commit

Permalink
Setup workflow to add needs-triage label to issues
Browse files Browse the repository at this point in the history
Creates a GitHub workflow which adds the needs-triage label to any
new issues created. Issues with labels are skipped to avoid adding
this to issues which were opened by someone who was already able
to add the appropriate labels.
  • Loading branch information
oliverdunk authored and xeenon committed Nov 16, 2022
1 parent 1b0732d commit 9f0ebc1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add needs triage label to all new issues
needs-triage:
- ""
15 changes: 15 additions & 0 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Needs Triage"
on:
issues:
types: [opened]

jobs:
triage:
if: github.event.issue.labels[0] == null
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
enable-versioned-regex: 0

0 comments on commit 9f0ebc1

Please sign in to comment.