diff --git a/.github/workflows/auto-assign-pr.yml b/.github/workflows/auto-assign-pr.yml new file mode 100644 index 0000000..387d047 --- /dev/null +++ b/.github/workflows/auto-assign-pr.yml @@ -0,0 +1,17 @@ +name: Auto-assign PRs + +on: + pull_request: + types: [opened] + +jobs: + assign-pr: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Assign PR to me + run: | + gh pr edit ${{ github.event.pull_request.number }} --add-assignee ${{ github.repository_owner }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file