diff --git a/go.mod b/go.mod index 580d429..5466e45 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/carlescere/scheduler v0.0.0-20170109141437-ee74d2f83d82 - github.com/jonhadfield/githosts-utils v0.0.0-20230625155053-035bb069bc7f + github.com/jonhadfield/githosts-utils v0.0.0-20230625162705-2c17f9405859 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.4 golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 diff --git a/go.sum b/go.sum index 3436aa2..40f91d6 100644 --- a/go.sum +++ b/go.sum @@ -15,6 +15,8 @@ github.com/jonhadfield/githosts-utils v0.0.0-20230625141953-c0213d98579f h1:lI0U github.com/jonhadfield/githosts-utils v0.0.0-20230625141953-c0213d98579f/go.mod h1:tznTL41bW+RwQESdLCYdeR5gZNbR1DdaGw0ZwSJQ6JI= github.com/jonhadfield/githosts-utils v0.0.0-20230625155053-035bb069bc7f h1:NLbGK2e2SEC+kBHqj67WELwLo0ycb9qz3HZHENXDLfo= github.com/jonhadfield/githosts-utils v0.0.0-20230625155053-035bb069bc7f/go.mod h1:tznTL41bW+RwQESdLCYdeR5gZNbR1DdaGw0ZwSJQ6JI= +github.com/jonhadfield/githosts-utils v0.0.0-20230625162705-2c17f9405859 h1:zW9U8EwfXP6wnQBjBxEMwoVFVXCltZW6p9oBLvX4xVM= +github.com/jonhadfield/githosts-utils v0.0.0-20230625162705-2c17f9405859/go.mod h1:tznTL41bW+RwQESdLCYdeR5gZNbR1DdaGw0ZwSJQ6JI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= diff --git a/main.go b/main.go index 731ff28..dcfb4b4 100644 --- a/main.go +++ b/main.go @@ -215,8 +215,7 @@ func displayStartupConfig() { if glProjectMinAccessLevel := os.Getenv("GITLAB_PROJECT_MIN_ACCESS_LEVEL"); glProjectMinAccessLevel != "" { logger.Printf("GitLab Project Minimum Access Level: %s", glProjectMinAccessLevel) } else { - logger.Printf("GitLab Project Minimum Access Level: %d", githosts.DefaultMinimumProjectAccessLevel) - + logger.Printf("GitLab Project Minimum Access Level: %d", githosts.GitlabDefaultMinimumProjectAccessLevel) } if glBackups := os.Getenv("GITLAB_BACKUPS"); glBackups != "" { logger.Printf("GitLab backups to keep: %s", glBackups)