Skip to content

Commit a196f5a

Browse files
committed
maintner/maintnerd, cmd/gerritbot, cmd/gitmirror: add golang/dl to whitelist
In golang/go#23223, we've created a new subrepository: https://go.googlesource.com/dl Unlike other subrepositories, there isn't a mirror on GitHub yet: https://github.com/golang/dl (404 at this moment) We want to include it in the whitelist for mirroring to GitHub, including mirroring its pull requests to Gerrit. The motivation is to make this subrepository consistent with all others and prevent people from running into an unexpected situation when some repos are mirrored but some aren't. We don't actually expect much contribution activity to the dl subrepo, because it's very narrow in scope and mostly generated code. Updates golang/go#26949. Change-Id: Id995bb3d97b8eb328e6c6bba6714bc74fbefb942 Reviewed-on: https://go-review.googlesource.com/133896 Reviewed-by: Andrew Bonventre <[email protected]>
1 parent 9e0b3a0 commit a196f5a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Diff for: cmd/gerritbot/gerritbot.go

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ var gerritProjectWhitelist = map[string]bool{
194194
"build": true,
195195
"crypto": true,
196196
"debug": true,
197+
"dl": true,
197198
"example": true,
198199
"exp": true,
199200
"gddo": true,

Diff for: cmd/gitmirror/gitmirror.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,13 @@ func runGitMirror() error {
230230
// Repo already picked up by dashboard list.
231231
continue
232232
}
233-
go startRepo(name, "golang.org/x/"+name, false)
233+
path := "golang.org/x/" + name
234+
if name == "dl" {
235+
// This subrepo is different from others in that
236+
// it doesn't use the /x/ path element.
237+
path = "golang.org/" + name
238+
}
239+
go startRepo(name, path, false)
234240
}
235241
}
236242

@@ -274,6 +280,7 @@ func shouldMirror(name string) bool {
274280
"build",
275281
"crypto",
276282
"debug",
283+
"dl",
277284
"example",
278285
"exp",
279286
"gddo",

Diff for: maintner/maintnerd/maintnerd.go

+1
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ var goGitHubProjects = []string{
309309
"golang/build",
310310
"golang/crypto",
311311
"golang/debug",
312+
"golang/dl",
312313
"golang/example",
313314
"golang/exp",
314315
"golang/gddo",

0 commit comments

Comments
 (0)