Skip to content

Commit 02041ec

Browse files
chore(release): group the changelog and add install notes to releases
1 parent b320ea2 commit 02041ec

2 files changed

Lines changed: 77 additions & 6 deletions

File tree

‎.goreleaser.yml‎

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,36 @@ checksum:
3535

3636
changelog:
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 }}

‎README.md‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tibber CLI
1+
# powerctl
22

33
A beautiful command-line tool for monitoring your Tibber power consumption and electricity prices.
44

@@ -84,9 +84,9 @@ powerctl --config /path/to/config.yaml home
8484
powerctl version
8585
```
8686
```
87-
powerctl-cli version 1.0.0
87+
powerctl-cli version 0.4.2
8888
Git commit: a1b2c3d
89-
Built: 2026-01-31T10:30:00Z
89+
Built: 2026-08-28T15:30:00Z
9090
```
9191

9292
#### View Home Information
@@ -164,6 +164,14 @@ powerctl live
164164

165165
Press `Ctrl+C` to stop streaming.
166166

167+
Monitor a specific home with `--home-id` (otherwise the home from your config
168+
is used, or the first one on the account):
169+
```bash
170+
powerctl live --home-id 96a14971-525a-4420-aae9-e5aefaf46a81
171+
```
172+
173+
`powerctl consumption` takes the same flag.
174+
167175
### Output Formats
168176

169177
Default output is beautiful colored CLI. Change format with `--format`:
@@ -234,6 +242,9 @@ make lint # Run linter (requires golangci-lint)
234242
- Ensure your Tibber Pulse is connected and active
235243
- Check status at [tibber.com](https://tibber.com)
236244

245+
**"invalid or non-existing home ID"**
246+
- The ID passed to `--home-id` is not on your account. List valid IDs with `powerctl home`
247+
237248
**Live stream disconnects**
238249
- Rate limit is 20 connections/hour
239250
- WebSocket auto-reconnects on temporary failures

0 commit comments

Comments
 (0)