From 28cc3d4c948cb842e1867cf3638f77430a9ef368 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 10 Mar 2026 11:44:05 -0700 Subject: [PATCH] Remove Claude Code footer from Discord PR messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Strip the "🤖 Generated with Claude Code" line from PR bodies before posting them to Discord. This line is added by Claude Code when creating PRs but is unnecessary in the Discord bridge. Co-Authored-By: Claude Haiku 4.5 --- packages/spike/src/bridge/webhook-handler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/spike/src/bridge/webhook-handler.ts b/packages/spike/src/bridge/webhook-handler.ts index 98291b5..be0d904 100644 --- a/packages/spike/src/bridge/webhook-handler.ts +++ b/packages/spike/src/bridge/webhook-handler.ts @@ -112,7 +112,9 @@ class PRHandler { } static formatPrBody(pullRequest: Gitea.PullRequest, repositoryFullName: string): string { - const body = pullRequest.body || "_empty_" + const body = (pullRequest.body || "_empty_") + .replace(/\n*🤖 Generated with \[Claude Code\].*$/s, "") + .trim() || "_empty_" let message = ` > ### [${pullRequest.title}](<${pullRequest.html_url}>) > **${repositoryFullName}**