From 1961f76b2cc41da89e6d11d84dd46a725e3efaba Mon Sep 17 00:00:00 2001 From: josselinonduty Date: Mon, 23 Sep 2024 16:05:40 +0200 Subject: [PATCH] chore(workflow): add auto triage (auto assign + auto label) workflow --- .github/workflows/auto-triage.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/auto-triage.yml diff --git a/.github/workflows/auto-triage.yml b/.github/workflows/auto-triage.yml new file mode 100644 index 0000000..a7d4c79 --- /dev/null +++ b/.github/workflows/auto-triage.yml @@ -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