From 25232193bd187560068a515ad85018c3c5c79796 Mon Sep 17 00:00:00 2001 From: afuhflynn Date: Mon, 29 Dec 2025 03:36:05 +0100 Subject: [PATCH] added something new --- lib/ai/actions/index.ts | 63 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/lib/ai/actions/index.ts b/lib/ai/actions/index.ts index b524f1e..100767a 100644 --- a/lib/ai/actions/index.ts +++ b/lib/ai/actions/index.ts @@ -88,41 +88,38 @@ export async function reviewPullRequest( }, }); - try { - await inngest.send({ - name: "pr.summary.requested", - id: `summary-${repository.id}-${prNumber}`, - data: { - owner, - repo, - prNumber, - title: title ?? "", - description: description ?? "", - accountId: githubAccount.accountId, - installationId: installationId ?? null, - baseSha, - headSha, - changedFiles: changed_files ?? 0, - additions: additions ?? 0, - deletions: deletions ?? 0, - }, - }); - } catch (e) { - console.error("Summary enqueue failed", e); - } + await inngest.send({ + name: "pr.summary.requested", + id: `summary-${repository.id}-${prNumber}`, + data: { + owner, + repo, + prNumber, + title: title ?? "", + description: description ?? "", + accountId: githubAccount.accountId, + installationId: installationId ?? null, + baseSha, + headSha, + changedFiles: changed_files ?? 0, + additions: additions ?? 0, + deletions: deletions ?? 0, + }, + }); + + await inngest.send({ + name: "pr.review.requested", + id: `review-${repository.id}-${prNumber}`, + data: { + owner, + repo, + prNumber, + userId: repository.ownerId, + runId: run.id, + }, + }); try { - await inngest.send({ - name: "pr.review.requested", - id: `review-${repository.id}-${prNumber}`, - data: { - owner, - repo, - prNumber, - userId: repository.ownerId, - runId: run.id, - }, - }); } catch (e) { console.error("Review enqueue failed", e); }