debug commit verification

This commit is contained in:
Peter Evans 2024-08-09 12:44:16 +00:00
parent 2668dc956a
commit 93858f721d
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

@ -1317,7 +1317,7 @@ class GitHubHelper {
} }
const { data: remoteCommit } = yield this.octokit.rest.git.createCommit(Object.assign(Object.assign({}, repository), { parents: parents, tree: treeSha, message: `${commit.subject}\n\n${commit.body}` })); const { data: remoteCommit } = yield this.octokit.rest.git.createCommit(Object.assign(Object.assign({}, repository), { parents: parents, tree: treeSha, message: `${commit.subject}\n\n${commit.body}` }));
core.info(`Created commit ${remoteCommit.sha} for local commit ${commit.sha}`); core.info(`Created commit ${remoteCommit.sha} for local commit ${commit.sha}`);
core.debug(`Commit verification: ${remoteCommit.verification}`); core.debug(`Commit verified: ${remoteCommit.verification.verified}; reason: ${remoteCommit.verification.reason}`);
return remoteCommit.sha; return remoteCommit.sha;
}); });
} }

View file

@ -270,7 +270,7 @@ export class GitHubHelper {
core.info( core.info(
`Created commit ${remoteCommit.sha} for local commit ${commit.sha}` `Created commit ${remoteCommit.sha} for local commit ${commit.sha}`
) )
core.debug(`Commit verification: ${remoteCommit.verification}`) core.debug(`Commit verified: ${remoteCommit.verification.verified}; reason: ${remoteCommit.verification.reason}`)
return remoteCommit.sha return remoteCommit.sha
} }