From 076bdfb9c65880cc9744d30d8e084ec2f278a457 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Sep 2025 10:25:26 -0500 Subject: use standard table code. start labeling private repos --- configLookup.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configLookup.go') diff --git a/configLookup.go b/configLookup.go index e829091..5a230a8 100644 --- a/configLookup.go +++ b/configLookup.go @@ -18,6 +18,8 @@ package forgepb import ( "path/filepath" "strings" + + "go.wit.com/lib/protobuf/gitpb" ) /* @@ -116,6 +118,17 @@ func (fc *ForgeConfigs) DebName(gopath string) string { return normalBase } +// a work in progress +func (f *Forge) IsPrivate(repo *gitpb.Repo) bool { + namespace := repo.GetNamespace() + if namespace == "" { + // assume true + return true + } + + return f.Config.IsPrivate(namespace) +} + // is this a non-publishable repo? // matches package names from apt // -- cgit v1.2.3