diff options
| author | Jeff Carr <[email protected]> | 2025-07-02 12:51:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-07-02 12:51:22 -0500 |
| commit | dea10e2150ca2d879a9ef30f136698217a0415b2 (patch) | |
| tree | 583d7ab25b11eabee4e5fd7642b863beee926d46 | |
| parent | 90ee9f6f636ddfd197437228c53725b0c5ee4a47 (diff) | |
send a repos PBv0.0.110
| -rw-r--r-- | http.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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) +} |
