Skip to content

Commit 57fb184

Browse files
committed
treat iffy and never PRs the same for queue order
1 parent 85c9034 commit 57fb184

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

homu/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ def sort_key(self):
199199
1 if self.mergeable is False else 0,
200200
0 if self.approved_by else 1,
201201
-self.priority,
202-
self.rollup,
202+
# Cap `rollup` below at -1 (the value for iffy), so iffy and never
203+
# are treated the same.
204+
max(self.rollup, -1),
203205
self.num,
204206
]
205207

0 commit comments

Comments
 (0)