From 605b3fc1d5b52753fda516f6273c0273e3c16a8e Mon Sep 17 00:00:00 2001 From: Corey Gaunt <65140255+CoreyGaunt@users.noreply.github.com> Date: Thu, 19 Mar 2026 15:59:07 -0500 Subject: [PATCH] Refactor: Complete Overhaul of Branch New Command --- src/cliutils/commands/branch_new.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cliutils/commands/branch_new.py b/src/cliutils/commands/branch_new.py index e90b5bf..662d6f2 100644 --- a/src/cliutils/commands/branch_new.py +++ b/src/cliutils/commands/branch_new.py @@ -11,7 +11,6 @@ config_manager = ConfigManager() subprocess_utils = SubprocessUtilities() -# TODO: Refactor using Gum commands @click.command("branch-new") def branch_new(): with ClientConnections() as clients: @@ -24,7 +23,7 @@ def branch_new(): ticket_titles_string = " ".join([f"'{ticket}'" for ticket in ticket_titles]) selected_ticket = prompts.gum_filter(ticket_titles_string, "Select a ticket") - ticket_slug = [ ticket['slug'] for ticket in tickets if ticket['title'] == selected_ticket ] + ticket_slug = [ ticket['slug'] for ticket in tickets if ticket['title'] == selected_ticket ][0] _, pull_default_branch_name = subprocess_utils.run_and_capture_output( "git rev-parse --abbrev-ref origin/HEAD"