From db3253f9c527225b08f1ed55ac9ee35fa7d5a681 Mon Sep 17 00:00:00 2001 From: Ake Date: Tue, 7 Jan 2025 09:52:49 +0700 Subject: [PATCH] Fix GH auto-assign --- .github/workflows/auto-assign.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index e69de29..c33e203 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,24 @@ +name: Auto Assign Issues + +permissions: + issues: write + +on: + issues: + types: [opened] + +jobs: + assign_issue: + runs-on: ubuntu-latest + steps: + - name: Assign issue to maintainer + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + await github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + assignees: ['akegaviar'] + }); \ No newline at end of file