Skip to content

refactor(project): Stop requsting for README when viewing project on web

Patrick Bajao requested to merge pb-project-view-web-readme into main

Description

This is a follow up from !1183 (merged) (comment 1282455128).

When running glab project view --web, we don't need to make a request for the project's README since we're opening the browser. This moves the call for getReadmeFile() on where it is only needed.

How has this been tested?

Run glab project view https://gitlab.com/patrickbajao/cli-test --web and it should still open the project on the browser.

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)
  • Test gap

Merge request reports