mirror of
https://github.com/status-im/github-webhook-filter.git
synced 2025-01-23 03:58:55 +00:00
feat: also handle delete
events
This commit is contained in:
parent
a852836a30
commit
b5dac6c415
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user