This doc covers how to do a release of the tools here.
NOTE: when doing a release make sure that rh-pre-commit always has it's own
latest commit that is tagged with it's current version. This keeps
pre-commit autoupdate from fetching a weird tag.
You should be able to test it via:
git tag --points-at "$(git describe FETCH_HEAD --tag --abbrev=0)"- Make sure the versions are updated
- Run
make specfileand commit the changes - Draft the changelog entry
- Review and test code
- Make sure there are no issues
- Make sure docs are taken into account
- Make sure GitLab issues have been addressed
- Merge into main
- Checkout main and pull latest
- Run the following replacing the version
- git commit --allow-empty -m "rh-gitleaks-VERSION"
- git tag rh-gitleaks-VERSION
- git commit --allow-empty -m "rh-pre-commit-VERSION"
- git tag rh-pre-commit-VERSION
- git push && git push --tags
- Build RPMs in COPR
- Do a quickstart.sh install again to do one last round of testing and verify versions
- Publish the changelog
- Update the .pre-commit-config.yaml through a pre-commit autoupdate and merge in the changes
- Close out any now-resolved GitLab issues