fix(ci): trigger/retry when branch is not specified and not on default branch

Description

Correctly uses current branch when using ci trigger, ci retry

  • fix(ci): fix ci commands when branch is not specified

Resolves bug described !2286 (comment 3008751804)

How has this been tested?

  ~/temp/test2target    one-commit ───────────────────────────────────────────────────────────────────────────────────────────────────────────── 15:50:48 
❯ /Users/jaymccure/.local/share/mise/installs/go/1.25.4/bin/glab ci retry
Getting jobs for pipeline 2338672948...

Retried job (ID: 13194312426), status: running, ref: one-commit, weburl: https://gitlab.com/jay_mccure/test2target/-/jobs/13194312426

(previously it would run against default branch)

Screenshots (if appropriate):

Edited by Jay McCure

Merge request reports

Loading