From cbedc7f32cb63ac5eb982e615c6aa3e6f94b943a Mon Sep 17 00:00:00 2001 From: Nicolas Zin Date: Mon, 4 Sep 2023 12:26:36 -0400 Subject: [PATCH] addressing other slug issues --- internal/engine/goliac_reconciliator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/engine/goliac_reconciliator.go b/internal/engine/goliac_reconciliator.go index fb3cbef..97f9e1e 100644 --- a/internal/engine/goliac_reconciliator.go +++ b/internal/engine/goliac_reconciliator.go @@ -288,7 +288,7 @@ func (r *GoliacReconciliatorImpl) reconciliateRepositories(ctx context.Context, } } - lRepos[reponame] = &GithubRepoComparable{ + lRepos[slug.Make(reponame)] = &GithubRepoComparable{ IsPublic: lRepo.Data.IsPublic, IsArchived: lRepo.Data.IsArchived, Readers: readers, @@ -445,8 +445,8 @@ func (r *GoliacReconciliatorImpl) reconciliateRulesets(ctx context.Context, loca grs.Rules[r.Ruletype] = r.Parameters } for reponame := range repositories { - if match.Match([]byte(reponame)) { - grs.Repositories = append(grs.Repositories, reponame) + if match.Match([]byte(slug.Make(reponame))) { + grs.Repositories = append(grs.Repositories, slug.Make(reponame)) } } lgrs[rs.Metadata.Name] = &grs