From e838bedee942ad62513050121bc3fdca3421bd4b Mon Sep 17 00:00:00 2001 From: Alain Kaeslin Date: Mon, 12 Jan 2026 14:22:22 +0100 Subject: [PATCH] Improve branch name handling in `image-from-ref` helper by supporting multi-part branch names. --- helpers/image-from-ref | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/image-from-ref b/helpers/image-from-ref index 1776907..460bff0 100755 --- a/helpers/image-from-ref +++ b/helpers/image-from-ref @@ -25,8 +25,8 @@ def main(ref: str) -> int: return 1 match ref.split('/'): - case ["refs", "heads", branch]: - tag = f"branch-{branch}" + case ["refs", "heads", *branch_parts]: + tag = f"branch-{'-'.join(branch_parts)}" case ["refs", "pull", pull_request, "merge"]: tag = f"pull-request-{pull_request}" case ["refs", "tags", tag_name]: