From b5dac6c415111bbae532d63c1cbcf81e3a6eb20d Mon Sep 17 00:00:00 2001 From: shiftinv Date: Fri, 30 Sep 2022 15:05:38 +0200 Subject: [PATCH] feat: also handle `delete` events --- lib/filter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filter.ts b/lib/filter.ts index b2c7332..6bde6e1 100644 --- a/lib/filter.ts +++ b/lib/filter.ts @@ -86,8 +86,8 @@ export default async function filter( } } - // ignore creation of branch/tag - if (event === "create") { + // ignore creation/deletion of branch/tag + if (["create", "delete"].includes(event)) { // check if branch is allowed if ( json.ref_type === "branch" && config.allowBranches !== undefined &&