Skip to content

Commit

Permalink
fix links a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
olegklimov committed Dec 20, 2024
1 parent eac9195 commit 43b08b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/routers/v1/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ pub async fn handle_v1_links(
let mut project_changes = Vec::new();
for commit in &commits {
project_changes.push(format!(
"In project {}: {}\n{}",
"In project {}:\n{}{}",
commit.get_project_name(),
commit.file_changes.iter().take(3).map(|f| format!("{} {}", f.status.initial(), f.path)).collect::<Vec<_>>().join("\n"),
if commit.file_changes.len() > 3 { "\n..." } else { "\n" },
if commit.file_changes.len() > 3 { "\n...\n" } else { "\n" },
));
}
if !project_changes.is_empty() && post.messages.is_empty() {
Expand Down

0 comments on commit 43b08b2

Please sign in to comment.