diff --git a/.changeset/add_commit_author_login_and_pr_number_change_template_variables.md b/.changeset/add_commit_author_login_and_pr_number_change_template_variables.md deleted file mode 100644 index 6ea041b77..000000000 --- a/.changeset/add_commit_author_login_and_pr_number_change_template_variables.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -versioning: minor -config: minor -knope: minor ---- - -# Add `$pr_author_login` and `$pr_number` change template variables - -You can now reference GitHub usernames and pull request numbers when generating changelog entries. -This is only supported for GitHub for now. - -Thanks to @DaleSeo for PR #1804! diff --git a/.changeset/box-inconsistent-versions.md b/.changeset/box-inconsistent-versions.md deleted file mode 100644 index 5209f8855..000000000 --- a/.changeset/box-inconsistent-versions.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -versioning: major ---- - -# `NewError::InconsistentVersions` fields are now `Box` - -The `first_version` and `second_version` fields of `NewError::InconsistentVersions` (re-exported as `PackageNewError`) changed from `Version` to `Box` to reduce the variant's size and satisfy the `clippy::result_large_err` lint introduced in Rust 1.94.0. diff --git a/.changeset/commit_author_login_and_pr_number_are_now_reserved_strings_in_change_templates.md b/.changeset/commit_author_login_and_pr_number_are_now_reserved_strings_in_change_templates.md deleted file mode 100644 index bb4743bde..000000000 --- a/.changeset/commit_author_login_and_pr_number_are_now_reserved_strings_in_change_templates.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -knope: major ---- - -# `$pr_author_login` and `$pr_number` are now reserved strings in change templates - -If you previously had these literal strings in `[release_notes.change_templates]`, they will now be treated like the new variables for looking up GitHub info. diff --git a/.changeset/fix_cargo_binstall_installation.md b/.changeset/fix_cargo_binstall_installation.md deleted file mode 100644 index bcc30d239..000000000 --- a/.changeset/fix_cargo_binstall_installation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -knope: patch ---- - -# Fix cargo-binstall installation diff --git a/.changeset/retry_rate_limited_requests_to_github.md b/.changeset/retry_rate_limited_requests_to_github.md deleted file mode 100644 index d7e3f5a15..000000000 --- a/.changeset/retry_rate_limited_requests_to_github.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -knope: patch ---- - -# Retry rate-limited requests to GitHub diff --git a/CHANGELOG.md b/CHANGELOG.md index 759af6c81..88377161f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,28 @@ The results are changes to the current directory, calls to external commands, an Notably, anything written to standard output or standard error (what you see in the terminal) is _not_ considered part of the public API and may change between any versions. +## 0.23.0 (2026-05-24) + +### Breaking Changes + +#### `$pr_author_login` and `$pr_number` are now reserved strings in change templates + +If you previously had these literal strings in `[release_notes.change_templates]`, they will now be treated like the new variables for looking up GitHub info. + +### Features + +#### Add `$pr_author_login` and `$pr_number` change template variables + +You can now reference GitHub usernames and pull request numbers when generating changelog entries. +This is only supported for GitHub for now. + +Thanks to @DaleSeo for PR #1804! + +### Fixes + +- Fix cargo-binstall installation +- Retry rate-limited requests to GitHub + ## 0.22.4 (2026-03-21) ### Fixes diff --git a/Cargo.lock b/Cargo.lock index 5d8cd278b..a189fab40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1475,7 +1475,7 @@ dependencies = [ [[package]] name = "knope" -version = "0.22.4" +version = "0.23.0" dependencies = [ "base64", "changesets", @@ -1517,7 +1517,7 @@ dependencies = [ [[package]] name = "knope-config" -version = "0.4.2" +version = "0.4.3" dependencies = [ "indexmap", "knope-versioning", @@ -1529,7 +1529,7 @@ dependencies = [ [[package]] name = "knope-versioning" -version = "0.7.1" +version = "0.8.0" dependencies = [ "changesets", "deno_lockfile", diff --git a/Cargo.toml b/Cargo.toml index a891220e5..ca6f89d29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ deno_config = "0.97.0" deno_semver = "0.9.0" indexmap = { version = "2", features = ["serde"] } itertools = "0.14.0" -knope-versioning = { path = "crates/knope-versioning", version = "0.7.1" } +knope-versioning = { path = "crates/knope-versioning", version = "0.8.0" } miette = "7.2.0" regex = "1.11.0" relative-path = { version = "2.0.0", features = ["serde"] } diff --git a/README.md b/README.md index 1ce7ecc82..4063b1206 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ jobs: token: ${{ secrets.PAT }} - uses: knope-dev/action@v2.1.0 # Install Knope with: - version: 0.22.4 + version: 0.23.0 - run: knope release env: GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/crates/knope-config/CHANGELOG.md b/crates/knope-config/CHANGELOG.md index 268684602..5616567bb 100644 --- a/crates/knope-config/CHANGELOG.md +++ b/crates/knope-config/CHANGELOG.md @@ -1,3 +1,14 @@ +## 0.4.3 (2026-05-24) + +### Features + +#### Add `$pr_author_login` and `$pr_number` change template variables + +You can now reference GitHub usernames and pull request numbers when generating changelog entries. +This is only supported for GitHub for now. + +Thanks to @DaleSeo for PR #1804! + ## 0.4.2 (2026-02-16) ### Features diff --git a/crates/knope-config/Cargo.toml b/crates/knope-config/Cargo.toml index a20700e69..f98168123 100644 --- a/crates/knope-config/Cargo.toml +++ b/crates/knope-config/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "knope-config" description = "A library for handling common configuration of Knope" -version = "0.4.2" +version = "0.4.3" authors = ["Dylan Anthony "] edition = "2024" license = "MIT" diff --git a/crates/knope-versioning/CHANGELOG.md b/crates/knope-versioning/CHANGELOG.md index 5604b7347..891ce6501 100644 --- a/crates/knope-versioning/CHANGELOG.md +++ b/crates/knope-versioning/CHANGELOG.md @@ -1,3 +1,20 @@ +## 0.8.0 (2026-05-24) + +### Breaking Changes + +#### `NewError::InconsistentVersions` fields are now `Box` + +The `first_version` and `second_version` fields of `NewError::InconsistentVersions` (re-exported as `PackageNewError`) changed from `Version` to `Box` to reduce the variant's size and satisfy the `clippy::result_large_err` lint introduced in Rust 1.94.0. + +### Features + +#### Add `$pr_author_login` and `$pr_number` change template variables + +You can now reference GitHub usernames and pull request numbers when generating changelog entries. +This is only supported for GitHub for now. + +Thanks to @DaleSeo for PR #1804! + ## 0.7.1 (2026-02-16) ### Features diff --git a/crates/knope-versioning/Cargo.toml b/crates/knope-versioning/Cargo.toml index 593d1079d..506651d01 100644 --- a/crates/knope-versioning/Cargo.toml +++ b/crates/knope-versioning/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "knope-versioning" description = "A library for handling all the versioned files supported by Knope" -version = "0.7.1" +version = "0.8.0" authors = ["Dylan Anthony "] edition = "2024" license = "MIT" diff --git a/crates/knope/Cargo.toml b/crates/knope/Cargo.toml index 5c6acd49a..01671b0cb 100644 --- a/crates/knope/Cargo.toml +++ b/crates/knope/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "knope" description = "A command line tool for automating common development tasks" -version = "0.22.4" +version = "0.23.0" authors = ["Dylan Anthony "] edition = "2024" license = "MIT" @@ -37,7 +37,7 @@ inquire = { version = "0.9.0", default-features = false, features = [ "crossterm", ] } itertools = { workspace = true } -knope-config = { path = "../knope-config", version = "0.4.2" } +knope-config = { path = "../knope-config", version = "0.4.3" } knope-versioning = { workspace = true, features = ["miette"] } miette = { workspace = true, features = ["fancy"] } relative-path = { workspace = true } diff --git a/docs/src/content/docs/installation.mdx b/docs/src/content/docs/installation.mdx index 0e10578d0..4f66ac54e 100644 --- a/docs/src/content/docs/installation.mdx +++ b/docs/src/content/docs/installation.mdx @@ -183,5 +183,5 @@ There is an official [GitHub action](https://github.com/marketplace/actions/inst - name: Install Knope uses: knope-dev/action@v2.1.2 with: - version: 0.22.4 + version: 0.23.0 ``` diff --git a/docs/src/content/docs/recipes/1-preview-releases-with-pull-requests.md b/docs/src/content/docs/recipes/1-preview-releases-with-pull-requests.md index 961031cf6..a83055579 100644 --- a/docs/src/content/docs/recipes/1-preview-releases-with-pull-requests.md +++ b/docs/src/content/docs/recipes/1-preview-releases-with-pull-requests.md @@ -143,7 +143,7 @@ jobs: git config user.email github-actions@github.com - uses: knope-dev/action@v2.1.2 with: - version: 0.22.4 + version: 0.23.0 - run: knope prepare-release --verbose env: GITHUB_TOKEN: ${{ secrets.PAT }} @@ -219,7 +219,7 @@ release: merge-multiple: true - uses: knope-dev/action@v2.1.2 with: - version: 0.22.4 + version: 0.23.0 - run: knope release env: GITHUB_TOKEN: ${{ secrets.PAT }} @@ -311,7 +311,7 @@ jobs: merge-multiple: true - uses: knope-dev/action@v2.1.2 with: - version: 0.22.4 + version: 0.23.0 - run: knope release env: GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/docs/src/content/docs/recipes/workflow-dispatch-releases.md b/docs/src/content/docs/recipes/workflow-dispatch-releases.md index 0b645165a..6f455afa0 100644 --- a/docs/src/content/docs/recipes/workflow-dispatch-releases.md +++ b/docs/src/content/docs/recipes/workflow-dispatch-releases.md @@ -46,7 +46,7 @@ jobs: - name: Install Knope uses: knope-dev/action@v2.1.2 with: - version: 0.22.4 + version: 0.23.0 - run: knope prepare-release --verbose name: Update versioned files and changelog - name: Store commit @@ -125,7 +125,7 @@ jobs: - name: Install the latest Knope uses: knope-dev/action@v2.1.2 with: - version: 0.22.4 + version: 0.23.0 - run: knope release --verbose env: GITHUB_TOKEN: ${{ secrets.PAT }}