Loading
feat(template): load issue and MR templates from remote repository when --repo is set
What does this MR do?
Adds support for loading issue and merge request templates from the remote GitLab repository via the API when the repository is overridden with -R/--repo. Previously, glab issue create and glab mr create could only read templates from the local .gitlab/ working tree, so templates were unavailable when targeting a different repository.
New sibling helpers LoadGitLabTemplateRemote and ListGitLabTemplatesRemote in internal/cmdutils fetch templates through RepositoryFiles.GetRawFile and Repositories.ListTree. The existing local helpers are left untouched. Both issue create and mr create branch to the remote helpers when --repo is set, using the target project's default branch as the ref.
Changes
feat(cmdutils): add remote template loading helpers + unit testsfeat(issue): load templates from remote repository with--repofeat(mr): load templates from remote repository with--repo
Closes #8175