diff --git a/src/drivers/github.js b/src/drivers/github.js index ced816daf..d36bdce25 100644 --- a/src/drivers/github.js +++ b/src/drivers/github.js @@ -450,7 +450,11 @@ class Github { }); return true; } catch (error) { - if (error.message === 'Branch not protected') { + const errors = [ + 'Branch not protected', + 'Upgrade to GitHub Pro or make this repository public to enable this feature.' + ]; + if (errors.includes(error.message)) { return false; } throw error;