Skip to content

Commit 98a539b

Browse files
committed
Use default branch as ref when a delete occurs
1 parent e485539 commit 98a539b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/actions/notifier_helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func notify(ctx context.Context, input *notifyInput) error {
127127
defer gitRepo.Close()
128128

129129
ref := input.Ref
130-
if ref == "" {
130+
if ref == "" || input.Event == webhook_module.HookEventDelete {
131131
ref = input.Repo.DefaultBranch
132132
}
133133

0 commit comments

Comments
 (0)