From a5b51eb3d03d4cfcb1b6fc909791ea4dff785329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B4=D8=B1=D9=83=D8=A9=20=D8=AE=D8=A8=D9=8A=D8=B1=20?= =?UTF-8?q?=D8=A7=D9=84=D9=85=D8=AD=D8=AF=D9=88=D8=AF=D8=A9?= Date: Wed, 26 Nov 2025 14:21:43 +0200 Subject: [PATCH] Update github action file --- .github/workflows/restrict-pr-authors.yaml | 30 ++++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/restrict-pr-authors.yaml b/.github/workflows/restrict-pr-authors.yaml index 5a8e9bab5..6f47e2da0 100644 --- a/.github/workflows/restrict-pr-authors.yaml +++ b/.github/workflows/restrict-pr-authors.yaml @@ -82,21 +82,23 @@ jobs: pull_number: pr.number }); - for (const commit of commitList.data) { - const commitAuthor = commit.author ? commit.author.login : null; + core.info("PR author is allowed."); + + # for (const commit of commitList.data) { + # const commitAuthor = commit.author ? commit.author.login : null; - if (commitAuthor && !allowed.includes(commitAuthor)) { - core.error(`Unauthorized commit author: ${commitAuthor}. Closing PR...`); + # if (commitAuthor && !allowed.includes(commitAuthor)) { + # core.error(`Unauthorized commit author: ${commitAuthor}. Closing PR...`); - await github.rest.pulls.update({ - owner, - repo, - pull_number: pr.number, - state: "closed" - }); + # await github.rest.pulls.update({ + # owner, + # repo, + # pull_number: pr.number, + # state: "closed" + # }); - return; - } - } + # return; + # } + # } - core.info("All PR authors and committers are allowed."); + # core.info("All PR authors and committers are allowed.");