Skip to content

Commit

Permalink
Add success message
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Oct 2, 2024
1 parent d081358 commit 67761ae
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/handlers/testing/exec/util/run-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,13 +726,21 @@ export class RunManager {
{
githubToken: process.env.GITHUB_TOKEN,
},
).catch((err) => {
emitter.emit(EventName.CONSOLE_LOG, {
ctx: 'cli',
level: 'warn',
message: `Failed to post comment to GitHub: ${err}`,
)
.then(() => {
emitter.emit(EventName.CONSOLE_LOG, {
ctx: 'cli',
level: 'info',
message: 'Successfully posted GitHub comment',
});
})
.catch((err) => {
emitter.emit(EventName.CONSOLE_LOG, {
ctx: 'cli',
level: 'warn',
message: `Failed to post comment to GitHub: ${err}`,
});
});
});
promises.push(gitHubPromise);
}

Expand Down

1 comment on commit 67761ae

@adamnolte
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏗️ default/test-cli  •  ➡️ View in Autoblocks


🟢  typescript-e2e-test-suite-1-undefined

Evaluators               Min / Avg / Max    Pass / Fail / Skip
--------------------------------------------------------------
has-all-substrings    1.00 / 1.00 / 1.00             4 / 0 / 0
is-friendly           0.23 / 0.61 / 0.90             4 / 0 / 0

Test Case Duration
Min: 294.51ms / Avg: 471.72ms / Max: 695.61ms
 
 
🟢  typescript-e2e-test-suite-2-undefined

Evaluators               Min / Avg / Max    Pass / Fail / Skip
--------------------------------------------------------------
has-all-substrings    1.00 / 1.00 / 1.00            10 / 0 / 0
is-friendly           0.01 / 0.47 / 1.00            10 / 0 / 0

Test Case Duration
Min: 103.75ms / Avg: 525.99ms / Max: 978.83ms
 
 

Generated by Autoblocks against 67761ae

Please sign in to comment.