Skip to content

Commit

Permalink
Keep a changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
d-k-bo committed Sep 17, 2023
1 parent 342865c commit cc8f252
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
- uses: taiki-e/create-gh-release-action@v1
with:
branch: main
changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Add last_used field for applications and clients (introduced in Gotify 2.4.0)

### Changed

- **BREAKING**: Mark all returned models as [`#[non_exhaustive]`](https://doc.rust-lang.org/reference/attributes/type_system.html#the-non_exhaustive-attribute). This helps avoiding backwards incompatible changes when new fields are added to Gotify's API.

## [0.3.0] - 2023-09-01

### Changed

- **BREAKING**: Don't create features for optional dependencies
- **BREAKING**: Make TLS backend configurable via feature flags

## [0.2.0] - 2023-08-28

### Changed

- **BREAKING**: Rename `Client::message_stream` to `Client::stream_messages`
- Rework internal request builder
- Improve docs

## [0.1.0] - 2023-08-27

### Added

- Initial release

[Unreleased]: https://github.com/d-k-bo/gotify-rs/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/d-k-bo/gotify-rs/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/d-k-bo/gotify-rs/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/d-k-bo/gotify-rs/releases/tag/v0.0.1
17 changes: 17 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[[pre-release-replacements]]
file = "CHANGELOG.md"
search = "## \\[Unreleased\\]"
replace = """## [Unreleased]\n\n## [{{version}}] - {{date}}"""
exactly = 1

[[pre-release-replacements]]
file = "CHANGELOG.md"
search = "\\.\\.\\.HEAD"
replace = "...{{tag_name}}"
exactly = 1

[[pre-release-replacements]]
file = "CHANGELOG.md"
search = "\\[Unreleased\\]: "
replace = """[Unreleased]: https://github.com/d-k-bo/gotify-rs/compare/{{tag_name}}...HEAD\n[{{version}}]: """
exactly = 1

0 comments on commit cc8f252

Please sign in to comment.