-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup workflow to add needs-triage label to issues
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
1 parent
1b0732d
commit 9f0ebc1
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Add needs triage label to all new issues | ||
needs-triage: | ||
- "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |