@@ -35,13 +35,36 @@ checksum:
3535
3636changelog :
3737 sort : asc
38+ # Read subjects from the local git log rather than the GitHub compare API:
39+ # no network dependency, so the changelog cannot fail the release, and it is
40+ # reproducible in a local `goreleaser release --skip=publish` dry run.
41+ use : git
42+ # Short SHAs, not full ones: GitHub autolinks 7+ char hashes in a release body,
43+ # so each entry gets a clickable commit link without the 40-char noise.
44+ abbrev : 7
3845 filters :
46+ # Scopes are optional in these prefixes: a bare '^chore:' misses
47+ # 'chore(release):' and the commit leaks into the notes.
3948 exclude :
40- - ' ^docs:'
41- - ' ^test:'
42- - ' ^chore:'
49+ - ' ^docs(\(.+\))?!?:'
50+ - ' ^test(\(.+\))?!?:'
51+ - ' ^chore(\(.+\))?!?:'
52+ - ' ^ci(\(.+\))?!?:'
53+ - ' ^style(\(.+\))?!?:'
4354 - Merge pull request
4455 - Merge branch
56+ # Outside contributors do not always use conventional prefixes, so these match
57+ # a plain 'Fix ...' subject too, and the catch-all group makes sure nothing is
58+ # silently dropped.
59+ groups :
60+ - title : " ⚡ Features"
61+ regexp : ' (?i)^(feat|feature)(\([[:word:]]+\))?!?:?\s.+$'
62+ order : 0
63+ - title : " 🐛 Bug fixes"
64+ regexp : ' (?i)^(fix|bugfix)(\([[:word:]]+\))?!?:?\s.+$'
65+ order : 1
66+ - title : " 🔧 Other changes"
67+ order : 999
4568
4669# Publishes the Homebrew cask to github.com/KristofferRisa/homebrew-powerctl on
4770# every tagged release, so the tap is generated output and never hand-edited.
@@ -80,3 +103,40 @@ release:
80103 # assets already on the GitHub release. Without this, GoReleaser 422s with
81104 # already_exists and never reaches the Homebrew tap push. That is what failed v0.4.0.
82105 replace_existing_artifacts : true
106+ header : |
107+ ## powerctl {{ .Tag }}
108+
109+ A CLI for monitoring Tibber power consumption and electricity prices.
110+ footer : |
111+
112+ ## Install
113+
114+ **Homebrew** (macOS & Linux)
115+
116+ ```bash
117+ brew install kristofferrisa/powerctl/powerctl
118+ ```
119+
120+ Already installed? `brew upgrade powerctl`
121+
122+ **Go**
123+
124+ ```bash
125+ go install github.com/kristofferrisa/powerctl-cli/cmd/powerctl@{{ .Tag }}
126+ ```
127+
128+ **Binary** — download the archive for your platform from the assets below, then:
129+
130+ ```bash
131+ tar -xzf {{ .ProjectName }}_{{ .Version }}_linux_amd64.tar.gz
132+ sudo install -m 755 powerctl /usr/local/bin/powerctl
133+ powerctl version
134+ ```
135+
136+ ## Verify your download
137+
138+ ```bash
139+ sha256sum --check --ignore-missing checksums.txt
140+ ```
141+
142+ **Full changelog:** https://github.com/kristofferrisa/powerctl-cli/compare/{{ .PreviousTag }}...{{ .Tag }}
0 commit comments