|
@ -301,12 +301,12 @@ func sameRepos(a *githubService, b *githubService) bool { |
|
|
getRepos := func(s *githubService) []string { |
|
|
getRepos := func(s *githubService) []string { |
|
|
r := make(map[string]bool) |
|
|
r := make(map[string]bool) |
|
|
for _, roomConfig := range s.Rooms { |
|
|
for _, roomConfig := range s.Rooms { |
|
|
for ownerRepo, _ := range roomConfig.Repos { |
|
|
|
|
|
|
|
|
for ownerRepo := range roomConfig.Repos { |
|
|
r[ownerRepo] = true |
|
|
r[ownerRepo] = true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
var rs []string |
|
|
var rs []string |
|
|
for k, _ := range r { |
|
|
|
|
|
|
|
|
for k := range r { |
|
|
rs = append(rs, k) |
|
|
rs = append(rs, k) |
|
|
} |
|
|
} |
|
|
return rs |
|
|
return rs |
|
@ -320,7 +320,7 @@ func sameRepos(a *githubService, b *githubService) bool { |
|
|
|
|
|
|
|
|
sort.Strings(aRepos) |
|
|
sort.Strings(aRepos) |
|
|
sort.Strings(bRepos) |
|
|
sort.Strings(bRepos) |
|
|
for i := 0; i < len(aRepos); i += 1 { |
|
|
|
|
|
|
|
|
for i := 0; i < len(aRepos); i++ { |
|
|
if aRepos[i] != bRepos[i] { |
|
|
if aRepos[i] != bRepos[i] { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|