Skip to content

Commit 64a2682

Browse files
committed
only display the comment's creation date
1 parent f95d90b commit 64a2682

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/rust-project-goals-cli-llm/src/updates.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ async fn prepare_goals(
113113
let mut comments = issue.comments.clone();
114114
comments.sort_by_key(|c| c.created_at.clone());
115115
comments.retain(|c| !c.is_automated_comment() && filter.matches(c));
116+
// Prettify the comments' timestamp after using it for sorting.
117+
for comment in comments.iter_mut() {
118+
comment.created_at = format!("{}", comment.created_at_date());
119+
}
116120

117121
let tldr = tldr(&issue_id, &mut comments)?;
118122

0 commit comments

Comments
 (0)