Commit titles matter when a release is tagged and the changelog is generated.
The changelog will skip all commits that do not follow a specific structure. The structure of the commit title is as follows:
type(scope): subject
Scope is optional. Some commit title examples that would be included in the changelog:
feat: this is a feature that involves several components
feat(docs): allow users to report documentation errors
perf(policy-server): cache policy results
fix(controller): properly update ClusterAdmissionPolicy status subresource
refactor(policy-server): move common code to external crates
It is required to have the
git-chglog
project
installed for automatic changelog generation to work. Install it like
so:
$ go get -u github.com/git-chglog/git-chglog/cmd/[email protected]
For creating a new release, first create a new tag:
$ TAG=vX.Y.Z make tag
This will also update the CHANGELOG.md
file on a separate
commit.
Assuming your official kubewarden remote is called upstream
:
$ git push upstream vX.Y.Z
Check that the Github actions are properly executed and have no errors. With regards to the release, several automation tasks should have been started:
- Execute tests
- Create a new Github release
- Push a tagged container image with the build of the project
For a release to be complete, all these tasks should have been executed succesfully.
Now that the controller has a new tag released, consider bumping the
helm-chart
.