Update github action file

This commit is contained in:
شركة خبير المحدودة 2025-11-26 15:32:28 +02:00
parent 38c843164e
commit 8e71dab562
1 changed files with 27 additions and 22 deletions

View File

@ -31,6 +31,7 @@ on:
- dev_odex25_helpdesk
- dev_odex25_donation
- dev_odex25_ensan
jobs:
check_pr_author:
runs-on: linting_odex25-standard-modules_runner
@ -74,16 +75,19 @@ jobs:
});
return;
}
core.info("All PR authors are allowed.");
// Check commit authors
const commitList = await github.rest.pulls.listCommits({
owner,
repo,
pull_number: pr.number
});
# // Check commit authors
# const commitList = await github.rest.pulls.listCommits({
# owner,
# repo,
# pull_number: pr.number
# });
core.info("PR author is allowed.");
# core.info("PR author is allowed.");
# // Uncomment below if you want to block unauthorized commit authors also
# /*
# for (const commit of commitList.data) {
# const commitAuthor = commit.author ? commit.author.login : null;
@ -102,3 +106,4 @@ jobs:
# }
# core.info("All PR authors and committers are allowed.");
# */