@andrewnez that looks really nice. As a new contributor to glab, I have faced an enterprise edge case in the past: The API host of (at least) GitLab can be different than the ssh host used for Git commands. Is that already covered? If not, I could at least point you in the right direction or maybe create a MR if you like.
@andrewnez yeah, I can do that and I will also link to the original glab issue and MR with my fix, although it builts on previous contributions that tried to (but failed) solve this issue.