Skip to content

Commit

Permalink
get deeper list of PRs (#7986)
Browse files Browse the repository at this point in the history
Co-authored-by: trunk bot <[email protected]>
  • Loading branch information
EliSchleifer and trunk bot authored Apr 3, 2024
1 parent ab7053e commit 4180357
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ fn get_txt_files() -> std::io::Result<Vec<PathBuf>> {

fn housekeeping(config: &Conf) {
for _ in 0..3 {
let json_str = gh(&["pr", "list", "--json", "number,mergeable,comments"]);
let json_str = gh(&[
"pr",
"list",
"--limit=1000",
"--json",
"number,mergeable,comments",
]);
let v: Value = serde_json::from_str(&json_str).expect("Failed to parse JSON");

let mut has_unknown = false;
Expand All @@ -55,7 +61,10 @@ fn housekeeping(config: &Conf) {
}
"MERGEABLE" => {
if !requeued.contains(&pr)
&& comments.contains("removed from the merge queue")
&& (comments.contains("removed from the merge queue")
|| comments.contains(
"To merge this pull request, check the box to the left",
))
{
enqueue(&pr, config);
println!("requeued pr: {}", &pr);
Expand Down

0 comments on commit 4180357

Please sign in to comment.