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

feature: option to prevent merging PR's with decreased coverage #3

Open
carlosdevpereira opened this issue Oct 10, 2022 · 0 comments
Open
Assignees
Labels
Feature request New feature proposal, detailing a possible new feature that might interest the users of this action

Comments

@carlosdevpereira
Copy link
Owner

Description

Whenever a pull-request will lower the coverage of the base branch, it would be nice to have a check that prevents those pull requests from being merged. This behaviour can also be a "opt-in" feature, toggled through an input variable passed to the action.

Proposed solution

Add an input variable called prevent-decreased-coverage to the action yml config, set as false by default that, when enabled, compares the coverage of the current commit against the previous one and, in case the coverage is lowered, fails the check. This check should be implemented for both commit history view and also in available pull request checks.

@carlosdevpereira carlosdevpereira added the Feature request New feature proposal, detailing a possible new feature that might interest the users of this action label Oct 10, 2022
@carlosdevpereira carlosdevpereira self-assigned this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request New feature proposal, detailing a possible new feature that might interest the users of this action
Projects
None yet
Development

No branches or pull requests

1 participant