Skip to content

Commit

Permalink
feat(changelog): display version creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrubek committed May 17, 2024
1 parent 30b55aa commit dadf5fd
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 0 deletions.
137 changes: 137 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ anyhow = "1.0.59"
cargo-lock = "8.0.3"
cargo_metadata = "0.15.3"
cargo_toml = "0.15.2"
chrono = "0.4.38"
console = "0.15.8"
conventional_commit_parser = "0.9.4"
gix = "0.62.0"
Expand Down
1 change: 1 addition & 0 deletions src/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub fn generate_changelog_entry<'a, I: IntoIterator<Item = &'a Commit>>(
Some((host, path)) => &format!("[{version}](https://{host}/{path}/releases/tag/{version})"),
None => version,
};
let version = &format!("{} - {}", version, chrono::Local::now().format("%Y-%m-%d"));

let typed_commits: HashMap<String, Vec<ChangelogCommit>> =
commits.into_iter().fold(HashMap::new(), |mut acc, commit| {
Expand Down

0 comments on commit dadf5fd

Please sign in to comment.