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 }}