Skip to content

Commit af02802

Browse files
fix: typo in tag reference pattern matching (#603)
## 📝 Description tag reference would be `refs/tags/<tag_name>` so in this case we are picking up the trailing `/` before tag name ## ✅ Checklist - [x] I have tested this change - [ ] This change requires documentation update
1 parent b4414f8 commit af02802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notifications/lib/notifications/workers/coordinator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ defmodule Notifications.Workers.Coordinator do
105105
defp extract_references(_pipeline, hook = %{git_ref_type: :TAG}), do: {hook.tag_name, nil, ""}
106106
defp extract_references(pipeline, hook), do: {nil, pipeline.branch_name, hook.pr_branch_name}
107107

108-
defp extract_references_from_pipeline(%{branch_name: "refs/tags" <> tag_name}),
108+
defp extract_references_from_pipeline(%{branch_name: "refs/tags/" <> tag_name}),
109109
do: {tag_name, nil, ""}
110110

111111
defp extract_references_from_pipeline(%{branch_name: branch_name}), do: {nil, branch_name, ""}

0 commit comments

Comments
 (0)