From 0af87430b95027b0b1c757d6247456f04bad19c4 Mon Sep 17 00:00:00 2001 From: stdNullPtr Date: Sun, 1 Jun 2025 20:07:51 +0300 Subject: [PATCH] feat: add auto-assignment of PRs to maintainer - Auto-assign all new PRs to stdNullPtr for review - Triggers on pull_request opened events - Uses GitHub Script action for reliability - Helps ensure timely review of contributions --- .github/workflows/auto-assign.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-assign.yml diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..df0ce36 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,26 @@ +name: Auto-assign PRs + +on: + pull_request: + types: [opened] + +permissions: + pull-requests: write + +jobs: + auto-assign: + runs-on: ubuntu-latest + steps: + - name: Auto-assign PR to maintainer + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + assignees: ['stdNullPtr'] + }); + + console.log('Auto-assigned PR #' + context.issue.number + ' to stdNullPtr'); \ No newline at end of file