Skip to content
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

why not make the CI fail? #1

Closed
camilamacedo86 opened this issue Sep 24, 2020 · 4 comments
Closed

why not make the CI fail? #1

camilamacedo86 opened this issue Sep 24, 2020 · 4 comments

Comments

@camilamacedo86
Copy link

Could it have an option for we make the ci fail instead of just add the label?

@thehanimo
Copy link
Owner

Yup that's definitely possible. We can add a parameter alwaysPassCI just in case people don't want tests failing only because of the title format. Would you like to take it up?

@camilamacedo86
Copy link
Author

I have no idea how it works. However, shows that it would be an if in https://github.com/thehanimo/pr-title-checker/blob/master/dist/index.js#L221 which should exit with 1. Also, we would need a new release after that.

@thehanimo
Copy link
Owner

thehanimo commented Sep 24, 2020

Ideally, you'd only want to make changes to https://github.com/thehanimo/pr-title-checker/blob/master/index.js. The dist folder is generated by the prepare script. We can probably have alwaysPassCI added as a key in the CHECKS object. Then, we can add a parameter to the addLabel function which takes in alwaysPassCI and if false, run core.setFailed("Fail CI test") just after core.info("Adding...") (inside addLabel).

@thehanimo
Copy link
Owner

Hey @camilamacedo86! I just released a new version (v1.1) which addresses this issue. Hope it helps you manage pull requests more efficiently!

Thank you so much!

thehanimo pushed a commit that referenced this issue Nov 25, 2024
Upgrade `actions/upload-artifact` from v2 to v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants