Fix job page copy source branch button
What does this MR do and why?
The button was copying the source ref instead of branch. We have taken the opportunity to completely refactor the component using gl-sprintf (and a similar refactor of the tests to ensure all code paths are verified).
We have also taken the opportunity to add a keyboard shortcut (b) to trigger copy to clipboard for the source ref/branch.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #342862 (closed)
Edited by Lee Tickett