Skip to content
Snippets Groups Projects
Commit 4a427adc authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: don’t clean branches if repository is not found or blocked

parent 4c267b21
No related branches found
Tags v11.17.8
No related merge requests found
......@@ -18,10 +18,12 @@ async function handleError(config, err) {
delete config.branchList; // eslint-disable-line no-param-reassign
return err.message;
} else if (err.message === 'blocked') {
delete config.branchList; // eslint-disable-line no-param-reassign
logger.info('Repository is blocked - skipping');
return err.message;
} else if (err.message === 'not-found') {
logger.info('Repository is not found');
delete config.branchList; // eslint-disable-line no-param-reassign
logger.warn('Repository is not found');
return err.message;
} else if (err.message === 'fork') {
logger.info('Repository is a fork and not manually configured - skipping');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment