From 8bbdc9139366af4157d69de5077f759f07a134ce Mon Sep 17 00:00:00 2001 From: Shivaraj B H Date: Mon, 1 Apr 2024 03:40:37 +0530 Subject: [PATCH] feat(dev): add `just changelog` (#162) resolves #134 --- CHANGELOG.md | 21 +++++++++++++++++++++ dev/flake.nix | 4 ++-- justfile | 4 ++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ba049..abb57c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog for services-flake +## Unreleased + +### Feat + +- **postgres**: add connectionURI option (#143) +- add pre-commit-hooks.nix, enforcing conventional commits + +### Fix + +- **postgres**: empty `socketDir` by default (#160) +- **mysql**: look for `*.sql` files in the top-level schema directory (#154) +- **template**: Was broken in previous PR merge + +### Refactor + +- **deprecation**: replace types.string with types.str +- writeShellScriptBin -> writeShellApplication (#155) +- **postgres**: replace string argument with attrset for `connectionURI` (#146) +- **example**: remove unused pg2 service (#142) +- overlays for packages in test flake (#120) + ## 0.1.0 (Mar 6, 2024) - Initial release diff --git a/dev/flake.nix b/dev/flake.nix index 81c7550..a07d768 100644 --- a/dev/flake.nix +++ b/dev/flake.nix @@ -31,10 +31,10 @@ }; }; devShells.default = pkgs.mkShell { - nativeBuildInputs = [ + packages = [ pkgs.just + config.pre-commit.settings.tools.commitizen ]; - # cf. https://flakular.in/haskell-flake/devshell#composing-devshells inputsFrom = [ config.treefmt.build.devShell config.pre-commit.devShell diff --git a/justfile b/justfile index 741c27d..4232fd7 100644 --- a/justfile +++ b/justfile @@ -2,6 +2,10 @@ default: @just --list +# Generate CHANGELOG under `Unreleased`, starting from the previous release +changelog: + cz ch --start-rev $(git describe --tags --abbrev=0 HEAD^) --incremental + # Run example/simple ex-simple: cd ./example/simple && nix run . --override-input services-flake ../..