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 693c442
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion red_githubbot/routers/backport_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"check_sha": "6251c585e4ec0a53813a9993ede3ab5309024579",
"fix_commit_msg": False,
"default_branch": "V3/develop",
"require_version_in_branch_name": False,
}


Expand Down Expand Up @@ -83,7 +84,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 693c442

Please sign in to comment.