From dea10e2150ca2d879a9ef30f136698217a0415b2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 2 Jul 2025 12:51:22 -0500 Subject: [PATCH] send a repos PB --- http.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/http.go b/http.go index 6c7b116..33f50bf 100644 --- a/http.go +++ b/http.go @@ -8,6 +8,7 @@ import ( "net/http" "os/user" + "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -39,3 +40,15 @@ func (f *Forge) HttpPost(url string, data []byte) ([]byte, error) { return body, nil } + +func (f *Forge) LookupPB(check *gitpb.Repos) (*gitpb.Repos, error) { + url := forgeURL + "lookup" + + for repo := range check.IterByFullPath() { + if repo.Namespace == "" { + repo.Namespace = repo.GoInfo.GoPath + } + } + + return check.SubmitReposPB(url) +}