diff --git a/docs/contributing/commitmsg-guidelines.md b/docs/contributing/commitmsg-guidelines.md index 3aa78a4c..04713d54 100644 --- a/docs/contributing/commitmsg-guidelines.md +++ b/docs/contributing/commitmsg-guidelines.md @@ -79,6 +79,7 @@ The scope should be the name of the package affected * mocks * models * notification +* ntp * oidc * regulation * server diff --git a/internal/commands/root.go b/internal/commands/root.go index a347428a..dd11bfed 100644 --- a/internal/commands/root.go +++ b/internal/commands/root.go @@ -110,7 +110,9 @@ func doStartupChecks(config *schema.Configuration, providers *middlewares.Provid } else if err = doStartupCheck(logger, "ntp", providers.NTP, config.NTP.DisableStartupCheck); err != nil { logger.Errorf("Failure running the user provider startup check: %+v", err) - failures = append(failures, "ntp") + if !config.NTP.DisableFailure { + failures = append(failures, "ntp") + } } if len(failures) != 0 { diff --git a/web/.commitlintrc.js b/web/.commitlintrc.js index 16eedc31..ee54e828 100644 --- a/web/.commitlintrc.js +++ b/web/.commitlintrc.js @@ -36,6 +36,7 @@ module.exports = { "models", "notification", "npm", + "ntp", "oidc", "regulation", "renovate",