feat: ignore tag pushes in git commit handler
All checks were successful
CI / build (push) Successful in 14s

This commit is contained in:
Space-Banane
2026-02-27 18:46:57 +01:00
parent 829e7247c0
commit 0599410528

View File

@@ -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) => {