-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore: Add crate release helper scripts #825
Conversation
Do we maybe want to add |
Oh good point. I ran shellcheck across them first, so never realised it wasn't already a check. Let me add it in this PR. |
I'm also in favour of adding the |
I've added shellcheck to both reviewdog and pre-commit (copied from the docker-images repo), and added the verify_crate_versions.sh to the pre-commit config. I have not added a pre-commit github action, so CI will not pickup mismatched versions (between Cargo.toml and CHANGELOG.md). Would you like me to add that workflow in? |
Tbh, I would keep it as is for now. I would rather invest more time in better tooling / improving the workflows (in the future). |
I more meant pre-commit running in Github Actions (not so much this temporary script). Much is duplicated by review dog (same dilemma in docker-images). |
Sure, let's add it. Shouldn't be much work anyway. We should keep in mind that much of that work will eventually be replaced (for example when moving this repo to it's own org). |
Added in 89e931b
Do you mean either reviewdog or pre-commit wouldn't be used anymore? At least the functionality those two provide will be needed in some capacity. Side-note: I would be in favour of dropping reviewdog for pre-commit, since the latter can work locally and in CI (maybe reviewdog can too though). |
No, they still will be used, but the workflows around it will probably change.
Yeah, interesting idea. Worth exploring in the future. |
Description
Added script to help with release crates:
.scripts/verify_crate_versions.sh
- used to ensureCHANGELOG.md
versions match what is inCargo.toml
. Useful when creating a release PR..scripts/tag_and_push_release.sh
- used after a release PR has been merged. It will fetch the origin, and tag each not yet tagged release to the selected commit, and optionally push the tags.Tip
Should we add
.scripts/verify_crate_versions.sh
to the pre-commit hooks? This can save a lot of time and human error.