Merge branch 'dev_odex25_purchase' into feature/maltayyar2_20251126_162547
This commit is contained in:
commit
0c1af951b1
|
|
@ -31,6 +31,7 @@ on:
|
||||||
- dev_odex25_helpdesk
|
- dev_odex25_helpdesk
|
||||||
- dev_odex25_donation
|
- dev_odex25_donation
|
||||||
- dev_odex25_ensan
|
- dev_odex25_ensan
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_pr_author:
|
check_pr_author:
|
||||||
runs-on: linting_odex25-standard-modules_runner
|
runs-on: linting_odex25-standard-modules_runner
|
||||||
|
|
@ -74,31 +75,35 @@ jobs:
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
core.info("All PR authors are allowed.");
|
||||||
|
|
||||||
// Check commit authors
|
# // Check commit authors
|
||||||
const commitList = await github.rest.pulls.listCommits({
|
# const commitList = await github.rest.pulls.listCommits({
|
||||||
owner,
|
# owner,
|
||||||
repo,
|
# repo,
|
||||||
pull_number: pr.number
|
# pull_number: pr.number
|
||||||
});
|
# });
|
||||||
|
|
||||||
core.info("PR author is allowed.");
|
# 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)) {
|
# // Uncomment below if you want to block unauthorized commit authors also
|
||||||
# core.error(`Unauthorized commit author: ${commitAuthor}. Closing PR...`);
|
# /*
|
||||||
|
# for (const commit of commitList.data) {
|
||||||
|
# const commitAuthor = commit.author ? commit.author.login : null;
|
||||||
|
|
||||||
# await github.rest.pulls.update({
|
# if (commitAuthor && !allowed.includes(commitAuthor)) {
|
||||||
# owner,
|
# core.error(`Unauthorized commit author: ${commitAuthor}. Closing PR...`);
|
||||||
# repo,
|
|
||||||
# pull_number: pr.number,
|
|
||||||
# state: "closed"
|
|
||||||
# });
|
|
||||||
|
|
||||||
# return;
|
# await github.rest.pulls.update({
|
||||||
# }
|
# owner,
|
||||||
# }
|
# repo,
|
||||||
|
# pull_number: pr.number,
|
||||||
|
# state: "closed"
|
||||||
|
# });
|
||||||
|
|
||||||
# core.info("All PR authors and committers are allowed.");
|
# return;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
|
# core.info("All PR authors and committers are allowed.");
|
||||||
|
# */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue