From 94ee6603ff6e99e21fa75149cb3fe760b9f6d5e3 Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Wed, 27 May 2026 19:35:11 +0200 Subject: [PATCH] add auto-assign pr author (#54) --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49de017..8c39cdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,3 +207,17 @@ jobs: sanitizer: tsan nim-versions: ${{ needs.versions.outputs.nim-versions }} nimble-version: ${{ needs.versions.outputs.nimble }} + + auto-assign: + name: Auto-assign PR author + if: github.event_name == 'pull_request' && github.event.action == 'opened' + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - run: gh pr edit "$PR" --repo "$REPO" --add-assignee "$AUTHOR" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + PR: ${{ github.event.pull_request.number }} + AUTHOR: ${{ github.event.pull_request.user.login }}