Thanks for considering contributing to this project!
If you find a bug, please feel free to open an issue.
We love pull requests. Here’s a quick guide:
- Fork this repository and then clone it locally:
$ git clone https://github.com/elastic/elastic-agent-changelog-tool
$ cd elastic-agent-changelog-tool
$ make build # ensure building the binary works
$ make test # ensure tests are green
- Create a topic branch for your changes:
git checkout -b fix-for-that-thing
- Commit a failing test for the bug:
git commit -am "Adds a failing test to demonstrate that thing"
- Commit a fix that makes the test pass:
git commit -am "Adds a fix for that thing!"
- Run the tests:
make test
- If everything looks good, push to your fork:
git push origin fix-for-that-thing
Open an issue and let’s design it together.
Versions should use the format v<semver>
, like v0.1.0
or v1.2.3
.
To release a pre-release version see below.
- Create a dedicated branch;
- Create and commit consolidated changelog with
elastic-agent-changelog-tool build --version <version> --repo elastic-agent-changelog-tool
; - Remove all previous fragments from git with
git rm changelog/fragments/*
; - Create a PR with changes;
- Merge it;
- Pull
main
and tag it with<version>
; - Push the tag, the release process will kick off automatically.
Versions should use the format v<semver>-<prerelease info>
, like v0.1.0-beta.1
or v1.2.3-rc.2
.
- Create a dedicated branch;
- Create and commit consolidated changelog with
elastic-agent-changelog-tool build --version <version> --repo elastic-agent-changelog-tool
; - Create a PR with changes;
- Merge it;
- Pull
main
and tag it with<version>
; - Push the tag, the release process will kick off automatically.
Note: in this version we do not remove fragments, as they will be needed for the stable release version changelog.