From 0b988f48203c844b56039c3fe38ed558fc35eee4 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Sun, 27 Aug 2023 23:38:01 +0200 Subject: [PATCH] Fix backporting to work with python/cherry-picker#70 --- red_githubbot/routers/backport_pr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: