Skip to content

fix(commands/issue/create): remotes error on issue create

Clement Sam requested to merge fix-remotes-error-issuecmd into trunk

When an issue is created for a different repo which has no remote in the current working git directory, it results in a remote not found error. This happens because cmdutils.LabelsPrompt needs the remote name to cache the labels in .git/config.

To fix that, we avoid caching the labels if there are no matching remotes.

Folow up to #446

Merge request reports