Skip to content

Commit

Permalink
commits debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 13, 2024
1 parent 632caae commit 08f17e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion 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.

7 changes: 6 additions & 1 deletion src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ class Runner {
const useCommitVerification = core.getBooleanInput("commitVerification");
let allCommitsVerified = true;

for (const [, commit] of Object.entries(this.pullRequest.listCommits())) {
const commits = Object.entries(this.pullRequest.listCommits());

core.debug(`checking commits: ${commits.length}`);
core.debug(`commits debug: ${JSON.stringify(commits)}`);

for (const [, commit] of commits) {
const commitAuthor = commit.author.login.toLowerCase();
const commitVerification = commit?.verification?.verified;
const sha = commit?.sha;
Expand Down

0 comments on commit 08f17e7

Please sign in to comment.