summaryrefslogtreecommitdiff
path: root/configLookup.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-04 10:25:26 -0500
committerJeff Carr <[email protected]>2025-09-04 10:25:26 -0500
commit076bdfb9c65880cc9744d30d8e084ec2f278a457 (patch)
tree4e85096cfb32a774119f8adc2d3a3f1198dc41c7 /configLookup.go
parent72e8d3659f3777f1e098dcc69453bf21df46f90b (diff)
use standard table code. start labeling private reposv0.0.123
Diffstat (limited to 'configLookup.go')
-rw-r--r--configLookup.go13
1 files changed, 13 insertions, 0 deletions
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
//