From 0c7d6fcb597fc95be801d266b1f15a3585864f1c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Nov 2025 15:29:33 -0600 Subject: compiles against stat.proto --- repos.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/repos.go b/repos.go index 54eec7a..284869a 100644 --- a/repos.go +++ b/repos.go @@ -14,20 +14,20 @@ func (f *Forge) PrepareCheckRepos() *gitpb.Repos { newrepo := new(gitpb.Repo) newrepo.Namespace = repo.Namespace newrepo.URL = repo.URL - newrepo.Tags = gitpb.NewGitTags() + newrepo.Tags = gitpb.NewStats() if repo.Tags == nil { log.Infof("%s no tags\n", repo.FullPath) continue } - if repo.Tags.Master != nil { - newrepo.Tags.Master = proto.Clone(repo.Tags.Master).(*gitpb.GitTag) + if repo.MasterStat != nil { + newrepo.MasterStat = proto.Clone(repo.MasterStat).(*gitpb.Stat) } else { log.Infof("no master tag %s\n", repo.FullPath) } - if repo.Tags.Devel != nil { - newrepo.Tags.Devel = proto.Clone(repo.Tags.Devel).(*gitpb.GitTag) + if repo.DevelStat != nil { + newrepo.DevelStat = proto.Clone(repo.DevelStat).(*gitpb.Stat) } submit.Append(newrepo) } @@ -42,20 +42,20 @@ func (f *Forge) PrepareCheckRepo(namespace string) *gitpb.Repo { newrepo := new(gitpb.Repo) newrepo.Namespace = found.Namespace newrepo.URL = found.URL - newrepo.Tags = gitpb.NewGitTags() + newrepo.Tags = gitpb.NewStats() if found.Tags == nil { log.Infof("%s Tags == nil\n", found.FullPath) return newrepo } - if found.Tags.Master != nil { - newrepo.Tags.Master = proto.Clone(found.Tags.Master).(*gitpb.GitTag) + if found.MasterStat != nil { + newrepo.MasterStat = proto.Clone(found.MasterStat).(*gitpb.Stat) } else { log.Infof("no master tag %s\n", found.FullPath) } - if found.Tags.Devel != nil { - newrepo.Tags.Devel = proto.Clone(found.Tags.Devel).(*gitpb.GitTag) + if found.DevelStat != nil { + newrepo.DevelStat = proto.Clone(found.DevelStat).(*gitpb.Stat) } return newrepo } -- cgit v1.2.3