Using ghinstance.OverridableDefault() instead of a harcoded hostname
This commit is contained in:
parent
793e866850
commit
cacf0157b3
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ func hostnameValidator(v interface{}) error {
|
|||
func getAccessTokenTip(hostname string) string {
|
||||
ghHostname := hostname
|
||||
if ghHostname == "" {
|
||||
ghHostname = "github.com"
|
||||
ghHostname = ghinstance.OverridableDefault()
|
||||
}
|
||||
return fmt.Sprintf(`
|
||||
Tip: you can generate a Personal Access Token here https://%s/settings/tokens
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue