feat: also handle `delete` events

This commit is contained in:
shiftinv 2022-09-30 15:05:38 +02:00
parent a852836a30
commit b5dac6c415
1 changed files with 2 additions and 2 deletions

View File

@ -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 &&