Skip to content

fix(issue): Open issue web view instantly if, URL provided

Kerri Miller requested to merge github/fork/zemzale/bug-instan-web-on-url into trunk

Created by: zemzale

Description When opening issue from URL, we should skip all the API calls, and just instantly open up.

Related Issue

Resolves #556 (closed)

Note: Issue mentions the same thing for mr command, but that command simply doesn't open URLs to begin with. That should be implemented on it's own issue.

How Has This Been Tested?

Before :

glab issue view --web https://gitlab.com/smth/backend/-/issues/2  0.13s user 0.05s system 18% cpu 0.949 total

Now:

glab issue view --web https://gitlab.com/smth/backend/-/issues/2  0.07s user 0.03s system 68% cpu 0.146 total

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports