From e59f87c92c8df9465952ecd8c76478e4dc351608 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 27 Sep 2025 11:17:01 -0500 Subject: show devel branches --- repos.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'repos.go') diff --git a/repos.go b/repos.go index a0bce2e..54eec7a 100644 --- a/repos.go +++ b/repos.go @@ -33,3 +33,29 @@ func (f *Forge) PrepareCheckRepos() *gitpb.Repos { } return submit } + +func (f *Forge) PrepareCheckRepo(namespace string) *gitpb.Repo { + found := f.Repos.FindByNamespace(namespace) + if found == nil { + return nil + } + newrepo := new(gitpb.Repo) + newrepo.Namespace = found.Namespace + newrepo.URL = found.URL + newrepo.Tags = gitpb.NewGitTags() + + 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) + } 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) + } + return newrepo +} -- cgit v1.2.3