Skip to content

Commit

Permalink
✨ (tag): Add emoji to changelog
Browse files Browse the repository at this point in the history
semver: minor
  • Loading branch information
Somfic committed Jun 13, 2024
1 parent 5143c17 commit 3e274cf
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/helper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ pub fn calculate_new_tag_based_on_commits() -> anyhow::Result<Option<semver::Ver
{
changelog.push_str(&format!("\n### {}", scope));
for commit in majors_delta.get(scope).unwrap() {
changelog.push_str(&format!("\n- {}", commit.message));
changelog.push_str(&format!(
"\n- {} {}",
commit.emoji.as_ref().unwrap_or(&"".to_string()),
commit.message
));
}
}
changelog.push_str("\n\n");
Expand All @@ -44,7 +48,11 @@ pub fn calculate_new_tag_based_on_commits() -> anyhow::Result<Option<semver::Ver
{
changelog.push_str(&format!("\n### {}", scope));
for commit in minors_delta.get(scope).unwrap() {
changelog.push_str(&format!("\n- {}", commit.message));
changelog.push_str(&format!(
"\n- {} {}",
commit.emoji.as_ref().unwrap_or(&"".to_string()),
commit.message
));
}
}
changelog.push_str("\n\n");
Expand All @@ -58,7 +66,11 @@ pub fn calculate_new_tag_based_on_commits() -> anyhow::Result<Option<semver::Ver
{
changelog.push_str(&format!("\n### {}", scope));
for commit in patches_delta.get(scope).unwrap() {
changelog.push_str(&format!("\n- {}", commit.message));
changelog.push_str(&format!(
"\n- {} {}",
commit.emoji.as_ref().unwrap_or(&"".to_string()),
commit.message
));
}
}
changelog.push_str("\n\n");
Expand Down

0 comments on commit 3e274cf

Please sign in to comment.