diff --git a/src/github.rs b/src/github.rs index 019dbbb..49d9d7e 100644 --- a/src/github.rs +++ b/src/github.rs @@ -14,6 +14,8 @@ pub struct GithubPullRequest { pub head: GithubBranch, pub labels: Vec, pub created_at: DateTime, + pub additions: u32, + pub deletions: u32, } #[derive(Deserialize, Debug)] diff --git a/src/main.rs b/src/main.rs index e136030..fefecdc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -225,7 +225,9 @@ fn make_message(pull_request: GithubPullRequest, show_pr_age: bool) -> String { format!("👤 {}", pull_request.user.login) }; - format!("{}{} \n\n{}\n", message, age_output, user) + let diff_size = format!("[+{}/-{}]", pull_request.additions, pull_request.deletions); + + format!("{}{} \n\n{} {}\n", message, age_output, user, diff_size) } fn get_age(d1: DateTime, d2: DateTime) -> String {