about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 22:00:20 +0200
committerAlan Pearce2024-06-29 22:00:20 +0200
commit1b59c4dd9cd2303baa97dca1c5d85696f9945356 (patch)
tree449d98421554f5c695b467bf96202d49a6de3af0
parented909273a2b15cdf0b178f7d7f3abe7931adeaee (diff)
downloadsearchix-1b59c4dd9cd2303baa97dca1c5d85696f9945356.tar.lz
searchix-1b59c4dd9cd2303baa97dca1c5d85696f9945356.tar.zst
searchix-1b59c4dd9cd2303baa97dca1c5d85696f9945356.zip
build: generate correct changelog for next version
-rw-r--r--justfile4
-rw-r--r--nix/dev-shell.nix1
2 files changed, 4 insertions, 1 deletions
diff --git a/justfile b/justfile
index 812dd20..efe492d 100644
--- a/justfile
+++ b/justfile
@@ -31,7 +31,9 @@ precommit:
 	nix-build -A pre-commit-check
 
 changelog:
-	convco changelog | prettier --stdin-filepath CHANGELOG.md > CHANGELOG.md
+	convco changelog -u $(convco version --bump) | \
+		sd -F HEAD $(convco version --print-prefix --bump) | \
+		prettier --stdin-filepath CHANGELOG.md > CHANGELOG.md
 
 dev:
 	modd
diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix
index eb2021f..7d21e9d 100644
--- a/nix/dev-shell.nix
+++ b/nix/dev-shell.nix
@@ -11,6 +11,7 @@ mkShell {
   packages = with pkgs;  [
     goEnv
 
+    sd
     templ
     modd
     brotli