From e28e8b44cb03b1c91b6087a7959210f363a000d8 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 11 Feb 2021 17:10:20 +0100 Subject: [PATCH] fix: add new disabled commands to result handling --- lib/workers/repository/error.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/workers/repository/error.ts b/lib/workers/repository/error.ts index d73eb2afda..9bdf1dedab 100644 --- a/lib/workers/repository/error.ts +++ b/lib/workers/repository/error.ts @@ -15,11 +15,14 @@ import { REPOSITORY_BLOCKED, REPOSITORY_CANNOT_FORK, REPOSITORY_CHANGED, + REPOSITORY_CLOSED_ONBOARDING, REPOSITORY_DISABLED, + REPOSITORY_DISABLED_BY_CONFIG, REPOSITORY_EMPTY, REPOSITORY_FORKED, REPOSITORY_MIRRORED, REPOSITORY_NOT_FOUND, + REPOSITORY_NO_CONFIG, REPOSITORY_NO_PACKAGE_FILES, REPOSITORY_RENAMED, REPOSITORY_UNINITIATED, @@ -46,7 +49,13 @@ export default async function handleError( delete config.branchList; // eslint-disable-line no-param-reassign return err.message; } - if (err.message === REPOSITORY_DISABLED) { + const disabledMessages = [ + REPOSITORY_CLOSED_ONBOARDING, + REPOSITORY_DISABLED, + REPOSITORY_DISABLED_BY_CONFIG, + REPOSITORY_NO_CONFIG, + ]; + if (disabledMessages.includes(err.message)) { logger.info('Repository is disabled - skipping'); return err.message; } -- GitLab