send a repos PB

This commit is contained in:
Jeff Carr 2025-07-02 12:51:22 -05:00
parent 90ee9f6f63
commit dea10e2150
1 changed files with 13 additions and 0 deletions

13
http.go
View File

@ -8,6 +8,7 @@ import (
"net/http" "net/http"
"os/user" "os/user"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log" "go.wit.com/log"
) )
@ -39,3 +40,15 @@ func (f *Forge) HttpPost(url string, data []byte) ([]byte, error) {
return body, nil 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)
}