-
Notifications
You must be signed in to change notification settings - Fork 35
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
I'm having an issue where the action still merges a major release even if the target is set to minor. #166
Comments
It's always github-action-merge-dependabot/src/checkTargetMatchToPR.js Lines 12 to 16 in 116f1db
|
Ah I can see that that dependabot PR is doing something we're not expecting here! It's bumping both react and react-dom. I've never seen this case before, I guess dependabot is getting smarter. We need a different strategy here, all of the assumptions we made in the action rely on a single package being bumped |
@wilkmaia is looking into this |
@simoneb based on what I've seen, this is kind of an expected behavior in the code right now, even if not desired. Specifically, looking at this test we can see it was actually expected that if the PR title didn't match the target match expression ( Moving forward we might want to improve that specific segment. Instead of simply checking the PR title we might want to check what's actually going on in the I'll work on that change for now but if you don't think that's not a good approach we can re-think the strategy. Edit: only now I've seen the comments above lol. |
If this issue is ever implemented we might want to drop checking the PR title altogether, given the PR template they implement might involve setting the title as well. |
I believe there was also a case where it still approved a merge to a major release with a valid semver format, although the config was set to target minor (example PR). However, this was with For this case with React, yes, the title has two dependencies and dependabot isn't including the version numbers in the title. We could parse the PR message for Thanks Fastify team for looking into this! |
I agree that looking at the diff is probably the only reliable way. |
I'm having an issue where the action still merges a major release even if the target is set to minor.
For example, React v17.0.2 to v18.0.0 still gets merged.
Example PR: https://github.com/austins/smoothnanners-web/pull/17
Originally posted by @austins in #124 (comment)
The text was updated successfully, but these errors were encountered: