From b7706aafb157c34597b5bad8f7c5324555a9db6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=2E=20Requena=20Plens?= Date: Mon, 29 Jun 2026 01:08:13 +0200 Subject: [PATCH] ci: add auto-assign workflow --- .github/workflows/auto-assign.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/auto-assign.yml 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