call `Object.entries()` on `commits` object
This commit is contained in:
Родитель
a8791ccbce
Коммит
632caaebe5
|
@ -38123,10 +38123,9 @@ class Runner {
|
|||
);
|
||||
|
||||
const useCommitVerification = lib_core.getBooleanInput("commitVerification");
|
||||
const commits = this.pullRequest.listCommits();
|
||||
let allCommitsVerified = true;
|
||||
|
||||
for (const commit of commits) {
|
||||
for (const [, commit] of Object.entries(this.pullRequest.listCommits())) {
|
||||
const commitAuthor = commit.author.login.toLowerCase();
|
||||
const commitVerification = commit?.verification?.verified;
|
||||
const sha = commit?.sha;
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -15,10 +15,9 @@ class Runner {
|
|||
);
|
||||
|
||||
const useCommitVerification = core.getBooleanInput("commitVerification");
|
||||
const commits = this.pullRequest.listCommits();
|
||||
let allCommitsVerified = true;
|
||||
|
||||
for (const commit of commits) {
|
||||
for (const [, commit] of Object.entries(this.pullRequest.listCommits())) {
|
||||
const commitAuthor = commit.author.login.toLowerCase();
|
||||
const commitVerification = commit?.verification?.verified;
|
||||
const sha = commit?.sha;
|
||||
|
|
Загрузка…
Ссылка в новой задаче