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

Handle not enough reviewers #29

Merged
merged 4 commits into from
Jul 25, 2023
Merged

Handle not enough reviewers #29

merged 4 commits into from
Jul 25, 2023

Conversation

Bullrich
Copy link
Contributor

Added validation that the amount of available users must not be smaller than the amount of required reviews.

Closes #27

Also fixed a small security vulnerability in a dependency.

@Bullrich Bullrich added this to the Project launch milestone Jul 25, 2023
@Bullrich Bullrich requested a review from mordamax July 25, 2023 14:50
@Bullrich Bullrich requested a review from a team as a code owner July 25, 2023 14:50
@Bullrich Bullrich self-assigned this Jul 25, 2023
await expect(runner.evaluateCondition({ min_approvals: 5, teams: ["a", "b"] })).rejects.toThrow(
"The amount of required approvals is smaller than the amount of available users.",
);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice tests

@Bullrich Bullrich merged commit f253d2c into main Jul 25, 2023
4 checks passed
@Bullrich Bullrich deleted the handle-not-enough-reviewers branch July 25, 2023 19:19
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

Successfully merging this pull request may close these issues.

Handle cases where amount of reviews is bigger than the amount of available users
2 participants