Skip to content

Comments

feat(core): release timestamp in changelogs#78

Merged
goulvenclech merged 1 commit intomainfrom
release-timestamp-in-changelog
Oct 2, 2025
Merged

feat(core): release timestamp in changelogs#78
goulvenclech merged 1 commit intomainfrom
release-timestamp-in-changelog

Conversation

@goulvenclech
Copy link
Member

Add a release timestamp in changelog headers (e.g., ## 1.0.0 - 2024-06-20), with configuration options to toggle visibility, pick the format, or force a timezone.

What does this change?

  • crates/sampo-core/Cargo.toml: added chrono & chrono-tz deps to handle dates and timezone handling.

  • crates/sampo-core/src/config.rs: added show_release_date (default true), release_date_format (default %Y-%m-%d), and release_date_timezone in [changelog] config options.

  • crates/sampo-core/src/release.rs: omplemented per-run release-date computation and timezone-aware heading formatting.

How is it tested?

  • crates/sampo-core/src/release_tests.rs: new tests to cover date rendering, blank/invalid formats, and timestamped headings.
  • Updated a bunch of other tests to accept these new changelog headings.

How is it documented?

  • crates/sampo/README.md: updated changelog examples + documented new config options.

@goulvenclech goulvenclech self-assigned this Oct 2, 2025
@sampo-s-bot
Copy link

sampo-s-bot bot commented Oct 2, 2025

🧭 Changeset detected

Merging this PR will bump the version and include these changes in the next release.

@github-actions github-actions bot added documentation Improvements or additions to documentation dependencies WIP. crt:sampo Changes in Sampo CLI crate. crt:sampo-core Changes in Sampo core logic or internal utils. labels Oct 2, 2025
@goulvenclech goulvenclech merged commit ee1cdaa into main Oct 2, 2025
7 checks passed
@goulvenclech goulvenclech deleted the release-timestamp-in-changelog branch October 2, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crt:sampo Changes in Sampo CLI crate. crt:sampo-core Changes in Sampo core logic or internal utils. dependencies WIP. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants