diff options
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 // |
