goreleaser to only generate the changelog on GitHub

612 views Asked by At

I am the current maintainer for the testcontainers-go project https://github.com/testcontainers/testcontainers-go .

This project is a library. It does not produce any binary or docker image. I would still like to use goreleaser and the GitHub Action to automate the release process.

I had a look around but I am not able to find the right configuration to only run goreleaser to generate the changelog.

Do you have any suggestion? Thanks a lot

2

There are 2 answers

1
caarlos0 On BEST ANSWER

Right now it isn't.

However, you can generate the changelog using git:

git log --pretty=oneline --abbrev-commit --no-decorate --no-color tags/v1.0.0..tags/v1.1.0

This is pretty much what GoReleaser does underneath.

0
GianArb On

Thanks a lot. At the end this is the command I will use:

git log $(git describe --abbrev=0)...$(git describe --abbrev=0 $(git describe --abbrev=0 --tags)^) --pretty=format:'* [%s]("http://github.com/testcontainers/testcontainers-go/commit/%H")' --reverse