From 05994105281e107259bc9dc8d73b99d5588053cf Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Fri, 27 Feb 2026 18:46:57 +0100 Subject: [PATCH] feat: ignore tag pushes in git commit handler --- src/web/gitCommit.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/web/gitCommit.ts b/src/web/gitCommit.ts index caa19f6..274d663 100644 --- a/src/web/gitCommit.ts +++ b/src/web/gitCommit.ts @@ -49,6 +49,14 @@ export default async function gitCommitPOST(app: Express) { return res.status(400).json({ error: "Invalid push payload" }); } + // ignore release by actions + if (ref.startsWith("refs/tags/")) { + return res.status(200).json({ + success: true, + message: "Tag push ignored", + }); + } + // Build commit list (max X) const SHOW_MAX = 5; const commitLines = commits.slice(0, SHOW_MAX).map((c: any) => {