diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 10:25:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 10:25:26 -0500 |
| commit | 076bdfb9c65880cc9744d30d8e084ec2f278a457 (patch) | |
| tree | 4e85096cfb32a774119f8adc2d3a3f1198dc41c7 /configLookup.go | |
| parent | 72e8d3659f3777f1e098dcc69453bf21df46f90b (diff) | |
use standard table code. start labeling private reposv0.0.123
Diffstat (limited to 'configLookup.go')
| -rw-r--r-- | configLookup.go | 13 |
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 // |
