From 4405113c923684972411b9c0fff47413762ffe64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=2E=20Requena=20Plens?= Date: Mon, 29 Jun 2026 14:24:27 +0200 Subject: [PATCH] ci: skip self-assignment in auto-assign workflow --- .github/workflows/auto-assign.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index cf16afb..fa9f578 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -12,6 +12,9 @@ jobs: permissions: issues: write pull-requests: write + if: >- + (github.event_name == 'issues' && github.event.issue.user.login != 'jmrplens') || + (github.event_name == 'pull_request' && github.event.pull_request.user.login != 'jmrplens') steps: - name: Assign to jmrplens env: @@ -19,4 +22,8 @@ jobs: 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 + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + /repos/$REPO/issues/$NUMBER/assignees \ + -f assignees[]=jmrplens \ No newline at end of file