Skip to content

Commit

Permalink
chore(workflow): add auto triage (auto assign + auto label) workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
josselinonduty committed Sep 23, 2024
1 parent 997753d commit 1961f76
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/auto-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Dispatch new issue
on:
issues:
types:
- reopened
- opened
pull_request:
types:
- opened
- reopened
jobs:
issue_assign:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- name: assign
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assignees: josselinonduty
numOfAssignee: 1

issue_label:
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: triage

0 comments on commit 1961f76

Please sign in to comment.