Skip to content

Commit

Permalink
Add action to label new issues and pull requests (#904)
Browse files Browse the repository at this point in the history
Add action to label new issues and pull requests

This will label new issues and pull requests with the needs_triage label in order to help with our new triage process.

Reviewed-by: David Shrewsbury <None>
Reviewed-by: None <None>
  • Loading branch information
samdoran committed Dec 7, 2021
1 parent 1cb711f commit 45fa3ac
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/labeler.yml
@@ -0,0 +1,11 @@
needs_triage:
- '.*'
- '.*/*'
- '*'
- '*/*'

docs:
- docs/*

test:
- 'test/*'
26 changes: 26 additions & 0 deletions .github/workflows/triage.yml
@@ -0,0 +1,26 @@
name: Triage

permissions:
contents: read
pull-requests: write
issues: write

on:
issues:
types:
- opened

pull_request:
types:
- opened

jobs:
triage:
runs-on: ubuntu-latest
name: Label

steps:
- name: Apply labels
uses: actions/labeler@v3
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 45fa3ac

Please sign in to comment.