From ffc0659a84cebd04f95370c219da6170f794d08c Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 10 Jan 2023 22:33:35 +0100 Subject: [PATCH] limit table to 20 items --- crates/github/src/review.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/github/src/review.rs b/crates/github/src/review.rs index ca73f9a..5900497 100644 --- a/crates/github/src/review.rs +++ b/crates/github/src/review.rs @@ -46,7 +46,7 @@ impl Review { Cell::new("title").add_attribute(comfy_table::Attribute::Bold), Cell::new("number").add_attribute(comfy_table::Attribute::Bold), ]) - .add_rows(prs.iter().map(|pr| { + .add_rows(prs.iter().take(20).map(|pr| { let pr = pr.clone(); vec![ Cell::new(pr.repository.name).fg(comfy_table::Color::Green),