Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Oct 1, 2024
1 parent 58aee53 commit 4fd0073
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/handlers/testing/exec/util/run-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,13 +696,12 @@ export class RunManager {

if (args.slackWebhookUrl) {
Object.values(this.runs).forEach((run) => {
const slackPromise = post({
path: `/runs/${run.runId}/slack-notification`,
apiKey: this.apiKey,
body: {
const slackPromise = this.post(
`/runs/${run.runId}/slack-notification`,
{
slackWebhookUrl: args.slackWebhookUrl,
},
})
)
.then(() => {
emitter.emit(EventName.CONSOLE_LOG, {
ctx: 'cli',
Expand All @@ -722,13 +721,12 @@ export class RunManager {
}

if (process.env.GITHUB_TOKEN) {
const gitHubPromise = post({
path: `/builds/${this.ciBuildId}/github-comment`,
apiKey: this.apiKey,
body: {
const gitHubPromise = this.post(
`/builds/${this.ciBuildId}/github-comment`,
{
githubToken: process.env.GITHUB_TOKEN,
},
}).catch((err) => {
).catch((err) => {
emitter.emit(EventName.CONSOLE_LOG, {
ctx: 'cli',
level: 'warn',
Expand Down

0 comments on commit 4fd0073

Please sign in to comment.