MCPcopy Create free account
hub / github.com/github/gh-aw / normalizeDisplayVersion

Function normalizeDisplayVersion

pkg/cli/upgrade_org.go:202–208  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

200}
201
202func normalizeDisplayVersion(version string) string {
203 version = strings.TrimSpace(version)
204 if version == "" {
205 return ""
206 }
207 return "v" + strings.TrimPrefix(version, "v")
208}
209
210// runUpgradeForTargetRepo checks out repo to a temporary directory, runs the
211// upgrade command inside it, and opens a pull request with the resulting changes.

Callers 4

renderOrgActionSummaryFunction · 0.85
renderOrgUpgradeReportFunction · 0.85

Calls

no outgoing calls

Tested by 1