Skip to content

Commit

Permalink
add workflows for triaging issues and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Mar 27, 2024
1 parent 18a76c1 commit aba142b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/labeler.yaml
@@ -0,0 +1,20 @@
github-actions:
- changed-files:
- any-glob-to-any-file:
- '.github/**'

documentation:
- changed-files:
- any-glob-to-any-file:
- 'README.md'
- '**/*.md'

legal:
- changed-files:
- any-glob-to-any-file:
- 'LICENSE'

examples:
- changed-files:
- any-glob-to-any-file:
- 'example/**'
14 changes: 14 additions & 0 deletions .github/workflows/triage-ci.yaml
@@ -0,0 +1,14 @@
name: "Triage PRs"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
18 changes: 18 additions & 0 deletions .github/workflows/triage.yaml
@@ -0,0 +1,18 @@
name: Label issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: needs-triage

0 comments on commit aba142b

Please sign in to comment.