Skip to content

Commit

Permalink
Fix backporting to work with python/cherry-picker#70
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Aug 27, 2023
1 parent 80f1da4 commit 0b988f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion red_githubbot/routers/backport_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0b988f4

Please sign in to comment.