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

refactor(github): don’t warn deleting protected branch

parent 9507062e
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,8 @@ class Storage {
{ branch: branchName },
'Branch to delete does not exist'
);
} else if (err.message.startsWith('Cannot delete protected branch')) {
logger.info({ branch: branchName }, 'Cannot delete protected branch');
} else {
logger.warn({ err, branch: branchName }, 'Error deleting branch');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment