Skip to content

Commit

Permalink
call Object.entries() on commits object
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 13, 2024
1 parent a8791cc commit 632caae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 632caae

Please sign in to comment.