From 03aff07a8b6e618e259a21336418807d602d46fe Mon Sep 17 00:00:00 2001 From: orxfun Date: Fri, 28 Aug 2026 13:20:00 +0200 Subject: [PATCH 1/3] clippy fix --- tests/priority_queue_deckey_tests/change_key_or_push.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/priority_queue_deckey_tests/change_key_or_push.rs b/tests/priority_queue_deckey_tests/change_key_or_push.rs index 339907c..e0af416 100644 --- a/tests/priority_queue_deckey_tests/change_key_or_push.rs +++ b/tests/priority_queue_deckey_tests/change_key_or_push.rs @@ -9,7 +9,7 @@ where P: PriorityQueueDecKey, { fn push_at_first_pass(i: usize) -> bool { - i % 3 != 0 + !i.is_multiple_of(3) } pq.clear(); From a5ddc888395bf38fa8e57610f6083ef52c51ac91 Mon Sep 17 00:00:00 2001 From: Ugur Arikan Date: Fri, 28 Aug 2026 14:33:42 +0200 Subject: [PATCH 2/3] Add release-plz configuration file --- release-plz.toml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 release-plz.toml diff --git a/release-plz.toml b/release-plz.toml new file mode 100644 index 0000000..3f308d4 --- /dev/null +++ b/release-plz.toml @@ -0,0 +1,6 @@ +[workspace] +git_tag_name = "v{{ version }}" +git_release_name = "v{{ version }}" +publish_all_features = true +release_always = false +release_commits = "^(feat|fix)(\\([^)]*\\))?!?:" From 2351cbceb3bd736190f30ae41936195d995c7ad2 Mon Sep 17 00:00:00 2001 From: Ugur Arikan Date: Fri, 28 Aug 2026 14:34:11 +0200 Subject: [PATCH 3/3] Add release workflow for GitHub Actions This workflow triggers a release process on push to the main branch or upon completion of the Rust workflow, creating or updating a release PR and publishing the release if conditions are met. --- .github/workflows/release.yml | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c797d14 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,54 @@ +name: Release + +on: + push: + branches: + - main + workflow_run: + workflows: + - Rust + types: + - completed + +permissions: + contents: write + pull-requests: write + +concurrency: + group: release-plz + cancel-in-progress: false + +jobs: + release-pr: + name: Create or update release PR + if: github.event_name == 'push' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: release-plz/action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + publish: + name: Publish release + if: >- + github.event_name == 'workflow_run' && + github.event.workflow_run.conclusion == 'success' && + startsWith(github.event.workflow_run.head_commit.message, 'chore: release v') + runs-on: ubuntu-latest + environment: crates-io + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.event.workflow_run.head_sha }} + - uses: release-plz/action@v0.5 + with: + command: release + token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}