We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1030ae1 commit 9f47421Copy full SHA for 9f47421
src/utils/sort_queue.rs
@@ -15,7 +15,12 @@ pub fn sort_queue_prs(mut prs: Vec<PullRequestModel>) -> Vec<PullRequestModel> {
15
// 3. Compare approval status (approved PRs should come first)
16
.then_with(|| a.is_approved().cmp(&b.is_approved()).reverse())
17
// 4. Compare priority numbers (higher priority should come first)
18
- .then_with(|| b.priority.unwrap_or(0).cmp(&a.priority.unwrap_or(0)))
+ .then_with(|| {
19
+ a.priority
20
+ .unwrap_or(0)
21
+ .cmp(&b.priority.unwrap_or(0))
22
+ .reverse()
23
+ })
24
// 5. Compare rollup mode (-1 = never/iffy, 0 = maybe, 1 = always)
25
.then_with(|| {
26
get_rollup_priority(a.rollup.as_ref()).cmp(&get_rollup_priority(b.rollup.as_ref()))
0 commit comments