Skip to content

Commit

Permalink
Merge pull request #81 from rylev/clean-up-logs
Browse files Browse the repository at this point in the history
Clean up logs by not showing headers on empty diffs
  • Loading branch information
jdno authored Apr 4, 2024
2 parents c9a63f6 + 3a07888 commit a1a6e75
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/github/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,15 @@ impl std::fmt::Display for UpdateRepoDiff {
for permission_diff in &self.permission_diffs {
write!(f, "{permission_diff}")?;
}
writeln!(f, " Branch Protections:")?;
if !self.branch_protection_diffs.is_empty() {
writeln!(f, " Branch Protections:")?;
}
for branch_protection_diff in &self.branch_protection_diffs {
write!(f, "{branch_protection_diff}")?;
}
writeln!(f, " App installation changes:")?;
if !self.app_installation_diffs.is_empty() {
writeln!(f, " App installation changes:")?;
}
for diff in &self.app_installation_diffs {
write!(f, "{diff}")?;
}
Expand Down

0 comments on commit a1a6e75

Please sign in to comment.