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.");