Skip to content

fix(issue/issueutils): rewrite issue URL parser to support nested groups

Clement Sam requested to merge (removed):fix-invalid-issue-url into main

Description

With this change, glab is able to parse issue URLs for nested groups when supplied as an argument to any of the issue subcommands.

  • glab issue view https://gitlab.com/Username/repo/-/issues/1 is OK
  • glab issue view https://gitlab.com/namespace/project/subproject/repo/-/issues/1 should also work`

Related Issues

Resolves #1060 (closed)

How has this been tested?

Added unit tests and also did some manual testing

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)
Edited by Clement Sam

Merge request reports