diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..cf16afb --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,22 @@ +name: Auto-assign + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + assign: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: Assign to jmrplens + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }} + run: | + gh api --method POST -H "Accept: application/vnd.github+json" /repos/$REPO/issues/$NUMBER/assignees -f assignees[]=jmrplens \ No newline at end of file