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

feat(bot): renovate auto merge support #713

Merged
merged 20 commits into from
Aug 24, 2021
Merged

feat(bot): renovate auto merge support #713

merged 20 commits into from
Aug 24, 2021

Conversation

chdsbd
Copy link
Owner

@chdsbd chdsbd commented Aug 22, 2021

This change supports auto merging Renovate PRs by update type.

related #701

@chdsbd chdsbd changed the base branch from master to chris/new-type-annotations August 22, 2021 15:00
Base automatically changed from chris/new-type-annotations to master August 22, 2021 15:18
kodiakhq bot pushed a commit that referenced this pull request Aug 22, 2021
This is a minor refactor I pulled out of #713
@chdsbd chdsbd marked this pull request as ready for review August 24, 2021 00:32
@chdsbd chdsbd requested a review from sbdchd August 24, 2021 00:32
continue
match_type = _compare_versions(group["old_version"], group["new_version"])
if not match_type:
continue
Copy link
Collaborator

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?

Copy link
Owner Author

Choose a reason for hiding this comment

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

fixed

Comment on lines +116 to +117
if "old_version" not in group or "new_version" not in group:
continue
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

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

fixed

@chdsbd chdsbd requested a review from sbdchd August 24, 2021 01:34
body: str


def generate_test_cases() -> Iterator[tuple[FakePR, str]]:
Copy link
Collaborator

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

Copy link
Collaborator

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?

Copy link
Owner Author

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

@chdsbd chdsbd added the automerge Mark PR for auto merge by Kodiak label Aug 24, 2021
@kodiakhq kodiakhq bot merged commit d387df9 into master Aug 24, 2021
@kodiakhq kodiakhq bot deleted the chris/renovate branch August 24, 2021 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Mark PR for auto merge by Kodiak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants