From 726961ca99f0e0da293890880772d9764dc0ec02 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 12 Nov 2025 09:55:23 -0800 Subject: [PATCH] let me cook --- packages/spike/src/gitea/webhook-handler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/spike/src/gitea/webhook-handler.ts b/packages/spike/src/gitea/webhook-handler.ts index a1b8f88..7ff835e 100644 --- a/packages/spike/src/gitea/webhook-handler.ts +++ b/packages/spike/src/gitea/webhook-handler.ts @@ -5,6 +5,11 @@ import { ChannelType } from "discord.js" import { assertNever } from "@workshop/shared/utils" export const handleGiteaWebhook = async (payload: GiteaWebhook) => { + const isDev = process.env.NODE_ENV !== "production" + if (!isDev && payload.repository.name === "🧪") { + return + } + if ("pull_request" in payload) { if (payload.action === "opened") { await handlePullRequestOpened(payload) @@ -143,7 +148,6 @@ ${pullRequest.html_url} const formatComment = async (comment: { body: string; user: GiteaUser }): Promise => { const authorName = mapGiteaUserToDiscord(comment.user.login) - console.log(`🌭`, { authorName, comment: comment.user.login }) const messageBody = await convertMentionsToDiscord(comment.body) return `**${authorName}**: ${messageBody}`