Skip to content

Commit

Permalink
fix: job failed when delete/update comment in fix: pr (#342)
Browse files Browse the repository at this point in the history
fix: wrong pull request object sent
  • Loading branch information
teodorus-nathaniel authored Dec 17, 2024
1 parent a69731c commit 29059ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/server/trigger-dev/jobs/issues-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ export async function createJob<T extends IOWithIntegrations<{ github: Autoinvoi
bugReportRegex.test(payload.changes.body?.from ?? '');

if (isChangedToOrFromBugReport) {
await runPrFixCheckRun({ ...payload, pull_request: payload.issue }, io);
await runPrFixCheckRun(payload, io);
}
break;
}
case 'deleted': {
const isBugReport = bugReportRegex.test(payload.comment.body);
if (isBugReport) {
await runPrFixCheckRun({ ...payload, pull_request: payload.issue }, io);
await runPrFixCheckRun(payload, io);
}
break;
}
Expand Down

0 comments on commit 29059ad

Please sign in to comment.