mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-16 03:52:12 +02:00
Merge pull request #375 from goreleaser/docs-release-notes
docs: Add example for --release-notes flag
This commit is contained in:
commit
715a919034
@ -28,3 +28,10 @@ You can have a markdown file previously created with the release notes, and
|
||||
pass it down to goreleaser with the `--release-notes=FILE` flag.
|
||||
GoReleaser will then skip its own release notes generation,
|
||||
using the contents of your file instead.
|
||||
|
||||
On Unix systems you can also generate the release notes in-line by using [process substitution](https://en.wikipedia.org/wiki/Process_substitution).
|
||||
To list all commits since the last tag, but skip ones starting with `Merge` or `docs`, you could run this command:
|
||||
|
||||
```sh
|
||||
goreleaser --release-notes <(git log --pretty=oneline --abbrev-commit $(git describe --tags --abbrev=0)^.. | grep -v '^[^ ]* \(Merge\|docs\)')
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user