-
Notifications
You must be signed in to change notification settings - Fork 3
Fix sign commits #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sign commits #18
Conversation
There was a problem hiding this 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 therun
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 |
There was a problem hiding this comment.
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.
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
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.