diff --git a/src/hook.rs b/src/hook.rs index a3e09ee..c58610b 100644 --- a/src/hook.rs +++ b/src/hook.rs @@ -33,6 +33,14 @@ impl From for Hook { pub fn format_hook(glh: &GitlabHook) -> Option { Some(match glh { + GitlabHook::Push(push) if push.object_kind == "tag_push" => { + format!( + "[{}] {} pushed tag {}.", + push.project.name, + push.user_name, + push.ref_.strip_prefix("refs/tags/").unwrap_or("?!"), + ) + }, GitlabHook::Push(push) => { if push.ref_ != "refs/heads/main" { // Ignore: Action not on 'main' branch