Parcourir la source

hotfix for repo name and owner case-insensitive equality

Mohammed Nafees il y a 3 ans
Parent
commit
342a6146ba
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      cli/cmd/apply.go

+ 3 - 1
cli/cmd/apply.go

@@ -747,7 +747,9 @@ func (t *DeploymentHook) PreApply() error {
 	envs := *envList
 	envs := *envList
 
 
 	for _, env := range envs {
 	for _, env := range envs {
-		if env.GitRepoOwner == t.repoOwner && env.GitRepoName == t.repoName && env.GitInstallationID == t.gitInstallationID {
+		if strings.EqualFold(env.GitRepoOwner, t.repoOwner) &&
+			strings.EqualFold(env.GitRepoName, t.repoName) &&
+			env.GitInstallationID == t.gitInstallationID {
 			t.envID = env.ID
 			t.envID = env.ID
 			break
 			break
 		}
 		}