add auto-assign pr author (#54)

This commit is contained in:
Ivan FB 2026-05-27 19:35:11 +02:00 committed by GitHub
parent e99220a3e4
commit 94ee6603ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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