dmitri.shuralyov.com/website/gido

Remove invalid CL checks.

These checks are now performed upstream in maintner,
so no need to do it here.

Follows https://golang.org/cl/107296.
Updates https://golang.org/issue/21984, https://golang.org/issue/22060, https://golang.org/issue/24875.
dmitshur committed 6 years ago commit 7fe64ad217d03a10cc669a5165662bc1563bc862
Showing partial commit. Full Commit
Collapse all
service.go
@@ -216,15 +216,11 @@ func issuesAndChanges(repo *maintner.GitHubRepo, gerrit *maintner.Gerrit) map[st
		root, ok := gerritProjects[proj.ServerSlashProject()]
		if !ok {
			return nil
		}
		err := proj.ForeachCLUnsorted(func(cl *maintner.GerritCL) error {
			if cl.Commit == nil { // TODO: Fix golang.org/issue/21984.
				log.Printf("cl.Commit is nil for CL number %d: %#v\n", cl.Number, cl)
				return nil
			}
			if cl.Private || cl.Status == "" {
			if cl.Private {
				return nil
			}
			state, ok := clState(cl.Status)
			if !ok {
				return nil