-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Codeship] fix status checking regexp & add new statuses #1662
Conversation
we don't need to match the file extension to determine the status
Generated by 🚫 dangerJS |
Also note that it seems the status codes in our code may be slightly outdated: case 'success':
badgeData.text[1] = 'passing';
badgeData.colorscheme = 'brightgreen';
break;
case 'projectnotfound':
badgeData.text[1] = 'not found';
break;
case 'branchnotfound':
badgeData.text[1] = 'branch not found';
break;
case 'testing':
case 'waiting':
badgeData.text[1] = 'pending';
break;
case 'error':
badgeData.text[1] = 'failing';
badgeData.colorscheme = 'red';
break;
case 'stopped':
badgeData.text[1] = 'not built';
break; from the link provided by @dennisnewel
So i think it might need to be updated to something like: case 'success':
badgeData.text[1] = 'passing';
badgeData.colorscheme = 'brightgreen';
break;
case 'projectnotfound':
badgeData.text[1] = 'not found';
break;
case 'branchnotfound':
badgeData.text[1] = 'branch not found';
break;
case 'testing':
case 'waiting':
case 'initiated':
badgeData.text[1] = 'pending';
break;
case 'error':
case 'infrastructure_failure':
badgeData.text[1] = 'failing';
badgeData.colorscheme = 'red';
break;
case 'stopped':
case 'ignored':
case 'blocked':
badgeData.text[1] = 'not built';
break; |
badgeData.text[1] = 'pending'; | ||
break; | ||
case 'error': | ||
case 'infrastructure_failure': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel the need to add a new status, if there is an error with the build itself, that's a failing build all the same imo.
Thanks for the PR, Merged! |
We don't need to match the file extension to determine the status.
This should fix #1654 .