diff --git a/red_githubbot/routers/backport_pr.py b/red_githubbot/routers/backport_pr.py index 0f28cf2..40d4d90 100644 --- a/red_githubbot/routers/backport_pr.py +++ b/red_githubbot/routers/backport_pr.py @@ -83,7 +83,9 @@ async def backport_pr(event: sansio.Event) -> None: status=utils.CheckRunStatus.IN_PROGRESS, ) - sorted_branches = sorted(branches, key=cherry_picker.version_sort_key) + sorted_branches = sorted( + branches, key=functools.partial(cherry_picker.version_sort_key, CHERRY_PICKER_CONFIG) + ) for branch in sorted_branches: try: