fix: ignore tag push to avoid issues with force-pushing

This commit is contained in:
shiftinv 2023-03-03 00:31:50 +01:00
parent f075cd50d3
commit 04c2092b2d
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,13 @@ export default async function filter(
ref = json.ref;
}
// if we have a `push` event for a tag, it will either not show up at all (create/delete),
// or will show up incorrectly (update).
// just ignore it, since tag creation/deletion also sends a separate (actually usable) event
if (event === "push" && refType === "tag") {
return `tag '${ref}' pushed`;
}
if (refType && ref) {
if (
refType == "branch" && config.allowBranches !== undefined &&