Skip to content

Commit

Permalink
A bit more concision in the messages
Browse files Browse the repository at this point in the history
There are often lots of PRs opened in the last day, perhaps we can use
a terser message for those.
  • Loading branch information
adamnfish committed Jan 12, 2024
1 parent 3d2437c commit 145fa19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ fn make_message(pull_request: GithubPullRequest, show_pr_age: bool) -> String {

fn get_age(d1: DateTime<Utc>, d2: DateTime<Utc>) -> String {
match d1.signed_duration_since(d2).num_days() {
0 => "opened less than a day ago".to_string(),
0 => "NEW".to_string(),
1 => "opened 1 day ago".to_string(),
n => format!("opened {} days ago", n),
}
Expand Down

0 comments on commit 145fa19

Please sign in to comment.