feat: ignore tag pushes in git commit handler
All checks were successful
CI / build (push) Successful in 14s
All checks were successful
CI / build (push) Successful in 14s
This commit is contained in:
@@ -49,6 +49,14 @@ export default async function gitCommitPOST(app: Express) {
|
|||||||
return res.status(400).json({ error: "Invalid push payload" });
|
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)
|
// Build commit list (max X)
|
||||||
const SHOW_MAX = 5;
|
const SHOW_MAX = 5;
|
||||||
const commitLines = commits.slice(0, SHOW_MAX).map((c: any) => {
|
const commitLines = commits.slice(0, SHOW_MAX).map((c: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user