summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-11-05 15:29:33 -0600
committerJeff Carr <[email protected]>2025-11-05 15:29:33 -0600
commit0c7d6fcb597fc95be801d266b1f15a3585864f1c (patch)
tree62fb4bb4ccc56ca60910d2d79453f6c9137714d4
parent3de288c8faa14311618dc32cbaf4e83606328fd2 (diff)
compiles against stat.protov0.0.200v0.0.199
-rw-r--r--repos.go20
1 files 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
}