Loading
refactor: route unauthenticated client through Factory
Description
- docs: disallow mutable package-level globals
- refactor: use Factory.UnauthenticatedClient in check-update and whatsnew
- refactor: add UnauthenticatedClient to Factory
Route unauthenticated API client creation through cmdutils.Factory, drop mutable package-level clientCreator variables, and add a guardrail against mutable globals in review instructions.
Related Issues
Resolves #8640 (closed)
How has this been tested?
make lintpassed with 0 issues.go test -racepassed forcmdutils,whatsnew, andupdatewitht.Parallel().- Verified live
glab check-updateandglab whatsnew --latestagainst gitlab.com.
Screenshots:
Edited by Zishan Ahmad
