Skip to content

Commit

Permalink
feat: add GitHub Issue labelling
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Dec 5, 2023
1 parent 10a83d6 commit 7bef51e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
github-actions:
- '.github/**'
- '.goreleaser.yaml'

dependencies:
- 'go.mod'
- 'go.sum'

documentation:
- 'README.md'

legal:
- 'LICENSE'
18 changes: 18 additions & 0 deletions .github/workflows/triage.yaml
Original file line number Diff line number Diff line change
@@ -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 7bef51e

Please sign in to comment.