From e922cc6b06882af8b77571ccd5c3eb34ae284ab2 Mon Sep 17 00:00:00 2001 From: CybAtax <62847599+CybAtax@users.noreply.github.com> Date: Sat, 25 May 2024 22:54:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Exclude=20bot=20account?= =?UTF-8?q?=20from=20auto=20assignment=20(#12)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/author-pr-assignment.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/author-pr-assignment.yml b/.github/workflows/author-pr-assignment.yml index 991ede5..0fd3895 100644 --- a/.github/workflows/author-pr-assignment.yml +++ b/.github/workflows/author-pr-assignment.yml @@ -25,6 +25,11 @@ jobs: const issue_number = context.issue.number; const author = context.payload.pull_request.user.login; + if (author.includes("bot")) { + core.info(`Cannot add bot account (${author}) as assignee`); + return; + } + const assignmentResult = await github.rest.issues.addAssignees({ owner, repo,