Skip to content

Conversation

Sajjon
Copy link
Owner

@Sajjon Sajjon commented Jul 8, 2025

cargo release automatically commits the version bumps, and this cannot be changed. So we let it, but git reset soft it, so that we can commit it and sign it in the Github workflow.

@Sajjon Sajjon requested a review from Copilot July 8, 2025 07:28
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refines the release process by removing unused cargo-release settings and adjusting the GitHub Actions workflow to avoid unwanted auto-commits.

  • Stripped out changelog and legacy git settings from the release config.
  • Updated the release workflow to soft-reset the auto-generated commit and manually commit the version bump.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.release.toml Removed the changelog setting and obsolete git-related comments.
.github/workflows/release.yml Added git reset --soft HEAD~1 and relocated commit logic into a new step.
Comments suppressed due to low confidence (2)

.release.toml:12

  • Removing the changelog setting disables automatic changelog generation by cargo-release; please ensure there's an alternative process or confirm the removal is intentional.
[release]

.github/workflows/release.yml:87

  • [nitpick] Consider removing the inline comment from the name field and placing it above the step or in the run block; step names should remain concise.
      - name: Commit and push version bump # We first reset the last commit to avoid the commit made by cargo-release

@@ -77,14 +77,16 @@ jobs:
- name: Run cargo release patch (version bump only)
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo release patch --execute --no-confirm
run: cargo release patch --execute --no-confirm # commits but we dont want to commit using cargo-release, so we will git reset soft HEAD~1
Copy link
Preview

Copilot AI Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use proper contraction in the comment: replace “dont” with “don't” for clarity.

Suggested change
run: cargo release patch --execute --no-confirm # commits but we dont want to commit using cargo-release, so we will git reset soft HEAD~1
run: cargo release patch --execute --no-confirm # commits but we don't want to commit using cargo-release, so we will git reset soft HEAD~1

Copilot uses AI. Check for mistakes.

Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.90%. Comparing base (d01f83f) to head (a877f1a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   96.90%   96.90%           
=======================================
  Files          76       76           
  Lines        1650     1650           
=======================================
  Hits         1599     1599           
  Misses         51       51           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Sajjon Sajjon merged commit 25f6c09 into main Jul 8, 2025
7 checks passed
@Sajjon Sajjon deleted the fix-sign-commits branch July 8, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant