Skip to content

Commit 602993b

Browse files
committed
add more logs
1 parent 5ee8540 commit 602993b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ const run = async (): Promise<void> => {
9292
const { eventName, repo, payload } = getGithubContext();
9393

9494
if (!token) {
95+
core.error("No GitHub token provided");
9596
return;
9697
}
9798

9899
if (eventName !== "pull_request" || !payload.pull_request) {
100+
core.info("Not a pull request event, skipping");
99101
return;
100102
}
101103

@@ -136,6 +138,8 @@ const run = async (): Promise<void> => {
136138
const octokit = getOctokit(token);
137139

138140
if (qualityGateResults) {
141+
core.info("Quality gate results found, checking status");
142+
139143
const qualityGateFailed = isQualityGateFailed(qualityGateResults);
140144

141145
octokit.rest.checks.create({

0 commit comments

Comments
 (0)