Explorar o código

Implement replace all to change underscores by hyphens on repo suffix

jnfrati %!s(int64=4) %!d(string=hai) anos
pai
achega
5768f6627b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cli/cmd/apply.go

+ 1 - 1
cli/cmd/apply.go

@@ -424,7 +424,7 @@ func (d *Driver) createApplication(resource *models.Resource, client *api.Client
 
 	if repoName := os.Getenv("PORTER_REPO_NAME"); repoName != "" {
 		if repoOwner := os.Getenv("PORTER_REPO_OWNER"); repoOwner != "" {
-			repoSuffix = fmt.Sprintf("%s-%s", repoOwner, repoName)
+			repoSuffix = strings.ReplaceAll(fmt.Sprintf("%s-%s", repoOwner, repoName), "_", "-")
 		}
 	}