From 7ca328aeaa6842f51514a263a9d63617aede1ea6 Mon Sep 17 00:00:00 2001 From: tusharshah21 Date: Sun, 10 May 2026 14:57:55 +0530 Subject: [PATCH 1/2] chore: enable slack and discord inputs in workflow --- .github/workflows/ai-review.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 91ee900..d5834c8 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -24,4 +24,8 @@ jobs: LLM_API_KEY: ${{ secrets.LLM_API_KEY }} LLM_REVIEWER_MODEL: "gpt-4o-mini" LLM_FIXER_MODEL: "gpt-4o" + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} exclude: "pnpm-lock.yaml,dist/**" From 5a903108aa4df6fe71f9dc1523ea2d206de6b03f Mon Sep 17 00:00:00 2001 From: tusharshah21 Date: Sun, 10 May 2026 15:13:39 +0530 Subject: [PATCH 2/2] fix: send only PR link in start notification --- src/main.ts | 4 ---- src/notifications.ts | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main.ts b/src/main.ts index 4763c39..fe842e2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -138,9 +138,6 @@ async function main() { ); const commitSha: string = eventData.after || eventData.pull_request?.head?.sha || ""; - const repositoryUrl: string = eventData.repository?.html_url || ""; - const commitUrl: string = - repositoryUrl && commitSha ? `${repositoryUrl}/commit/${commitSha}` : ""; const notificationRefs = notifier.isEnabled() ? await notifier.sendStart({ @@ -150,7 +147,6 @@ async function main() { prUrl: prDetails.url, action: eventData.action || "unknown", commitSha, - commitUrl, }) : {}; diff --git a/src/notifications.ts b/src/notifications.ts index 8343bb4..575e711 100644 --- a/src/notifications.ts +++ b/src/notifications.ts @@ -14,7 +14,6 @@ interface NotificationContext { prUrl: string; action: string; commitSha?: string; - commitUrl?: string; } interface NotificationThreadRefs { @@ -44,8 +43,8 @@ async function postJson(url: string, payload: Record, headers?: } function buildStartMessage(context: NotificationContext): string { - const commitPart = context.commitSha && context.commitUrl - ? `Commit: ${shortenSha(context.commitSha)} (${context.commitUrl})` + const commitPart = context.commitSha + ? `Commit: ${shortenSha(context.commitSha)}` : "Commit: n/a"; return [