fix: resolve host from URL for all issue operations

Description

  • fix: resolve host from URL for all issue operations

When issue commands are invoked with a self-managed GitLab URL outside of a git repository, subsequent API operations (such as fetching comments, creating notes, or updating issues) would incorrectly fall back to gitlab.com instead of using the host from the provided URL.

This occurred because IssueFromArg created a new API client with the correct host from the URL, but this client was assigned to a local parameter variable and was not returned to the caller. The caller continued using the original client pointing to the wrong host.

Fixes #8084

Resolves #8084

How has this been tested?

Screenshots (if appropriate):

Merge request reports

Loading