gitea-sonarqube-bot/cmd/gitea-sonarqube-bot/main.go
justusbunsi 4ba781d74f
Respect go package concepts
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-06-29 08:09:21 +02:00

22 lines
332 B
Go

package main
import (
"os"
"path"
"gitea-sonarqube-pr-bot/internal/settings"
)
func getConfigLocation() string {
configPath := path.Join("config")
if customConfigPath, ok := os.LookupEnv("PRBOT_CONFIG_PATH"); ok {
configPath = customConfigPath
}
return configPath
}
func main() {
settings.Load(getConfigLocation())
}