-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix select label override #14
Conversation
I was scratching my head for a while because I couldn't figure out why tests were failing after reordering the CI/label checks - turns out it was because when the CI checks were skipped for one PR, the graphql mocks got out of order. Is there a way to make mocks return a value based on a parameter, rather than setting them up to be returned values in a sequence? |
This is probably a side effect of two things: 1. Me using PS: I left some comments to use |
@benCoomes When this PR merges, will it fully resolve #11? |
Ha, we are in the same boat then! I'll spend some time to see what I can do.
It will give a workaround for it, so I'd be okay to close the issue. Dependabot needs to be configured per branch anyways, so setting a branch-specific label and then having a It'd still be nice to have it separate PRs by target branch by default, but I think the config would need to change to support either:
|
Co-authored-by: Grant Birkinbine <grantbirki@github.com>
@GrantBirki, I think this is ready for another look! |
}), | ||
graphql: jest.fn().mockImplementation((_query, params) => { | ||
switch (params.pull_number) { | ||
case 1: |
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 love this! TIL
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.
Amazing! 🎉 Thank you @benCoomes, you have significantly improved the test suite here as well and I learned a few new things following through your commits as well 🙇
Fixes bug introduced in #12 where label matching override checks for CI and reviews.
Also: