Merge pull request #123 from github/improved-logging

improved logging
This commit is contained in:
Grant Birkinbine 2023-11-27 14:25:35 -07:00 коммит произвёл GitHub
Родитель 54fc5236ee 6d6d27b1a3
Коммит e54360c52a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 35 добавлений и 3 удалений

18
dist/index.js сгенерированный поставляемый
Просмотреть файл

@ -37256,6 +37256,7 @@ class Runner {
}
async run() {
let approved = false; // a variable to track whether the PR has been approved
const requesters = await this.privilegedRequesters.getRequesters();
if (requesters === false) {
return;
@ -37273,10 +37274,25 @@ class Runner {
if (this.pullRequest.prCreator !== privileged_requester_username) {
continue;
}
await this.processPrivilegedReviewer(
let result = await this.processPrivilegedReviewer(
privileged_requester_username,
privileged_requester_config,
);
if (result === true) {
approved = true;
lib_core.info(
`Privileged requester ${privileged_requester_username} checks passed.`,
);
}
}
if (approved === true) {
lib_core.info(`✅ Approved!`);
} else {
lib_core.info(
`🙅 No privileged requester found. This pull request will not be approved by this Action`,
);
}
}

2
dist/index.js.map сгенерированный поставляемый

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -97,6 +97,7 @@ class Runner {
}
async run() {
let approved = false; // a variable to track whether the PR has been approved
const requesters = await this.privilegedRequesters.getRequesters();
if (requesters === false) {
return;
@ -114,10 +115,25 @@ class Runner {
if (this.pullRequest.prCreator !== privileged_requester_username) {
continue;
}
await this.processPrivilegedReviewer(
let result = await this.processPrivilegedReviewer(
privileged_requester_username,
privileged_requester_config,
);
if (result === true) {
approved = true;
core.info(
`Privileged requester ${privileged_requester_username} checks passed.`,
);
}
}
if (approved === true) {
core.info(`✅ Approved!`);
} else {
core.info(
`🙅 No privileged requester found. This pull request will not be approved by this Action`,
);
}
}