Heylogs can be integrated into CI/CD environments to automate changelog validation, release, and quality checks. This ensures that your changelog remains consistent and up-to-date throughout your development lifecycle.
Check changelog format:
- uses: jbangdev/jbang-action@v0.130.0
with:
script: com.github.nbbrd.heylogs:heylogs-cli:_VERSION_:bin
scriptargs: "check -o result.json"Release changelog:
- uses: jbangdev/jbang-action@v0.130.0
with:
script: com.github.nbbrd.heylogs:heylogs-cli:_VERSION_:bin
scriptargs: "release --ref ${{ github.ref_name }}"An alternative to GitHub Actions is to use the Maven command-line in your CI/CD pipeline using this syntax:
mvn com.github.nbbrd.heylogs:heylogs-maven-plugin:_VERSION_:<command> -D heylogs.<option>=<value>Check changelog format:
mvn com.github.nbbrd.heylogs:heylogs-maven-plugin:_VERSION_:check -D heylogs.outputFile=result.jsonRelease changelog:
mvn com.github.nbbrd.heylogs:heylogs-maven-plugin:_VERSION_:release -D heylogs.ref=1.2.3- Use the
checkcommand to validate changelog quality before merging or releasing. - Use the
releasecommand to finalize unreleased changes as part of your release process. - Use the
pushcommand to automate changelog updates from pull requests or commit messages. - Configure rules and options in
heylogs.propertiesfor consistent results across environments.