-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat(bot): renovate auto merge support #713
Conversation
This is a minor refactor I pulled out of #713
This is a minor refactor I pulled out of #713
continue | ||
match_type = _compare_versions(group["old_version"], group["new_version"]) | ||
if not match_type: | ||
continue |
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.
what about these codecov warnings?
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.
fixed
if "old_version" not in group or "new_version" not in group: | ||
continue |
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.
@sbdchd I don't think we'll ever hit this code in reality, but I'm also not willing to assert
on that
continue | ||
match_type = _compare_versions(group["old_version"], group["new_version"]) | ||
if not match_type: | ||
continue |
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.
fixed
body: str | ||
|
||
|
||
def generate_test_cases() -> Iterator[tuple[FakePR, str]]: |
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.
very fancy
@@ -0,0 +1,44 @@ | |||
from __future__ import annotations | |||
|
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.
should this test module be renamed to say "test_renovate.py` like the dependabot one?
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.
no, because this is general, testing both of them
This change supports auto merging Renovate PRs by update type.
related #701