diff --git a/.gitmessage b/.gitmessage new file mode 100644 index 0000000000000000000000000000000000000000..51922c0588aa53a8feba7868c38eec06d49b6052 --- /dev/null +++ b/.gitmessage @@ -0,0 +1,33 @@ + +################################################################################ +# COMMIT MESSAGE FORMAT +# +# ``` +# : +# +# [body] +# +# [footer] +# ``` +# +# General notes: +# - The `type` MUST be present. +# +# - The `body` MAY be present, and should include verbose, detailed information +# about what the old behavior was, why the change was necessary, and what the +# new behavior is +# +# - The `footer` MAY be prsent, and should include any relevant trailers and +# other metadata +# +# Valid values for : +# - deprecation: a change related to deprecation of a reosurce or interface +# - design: a change related to design that does not change an interface or +# any application/business logic +# - doc: a change related to documentation +# - feat: changes that introduce new behavior or a new feature +# - fix: Changes that fix an issue +# - refactor: Changes which neither fix an issue or add a feature +# - style: Changes to formatting, blank space, alignment, etc. +# - test: Changes which add missing tests or correct existing tests +################################################################################ diff --git a/flake.nix b/flake.nix index 10cb36bfabe3b5381385572051e936fcfd7f8998..9afc2cbce901760c9987566c1a20beb59a584620 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,11 @@ nixfmt-rfc-style nodePackages.prettier ]; + + shellHook = '' + # Use //:.gitmessage as the commit message template + ${pkgs.git}/bin/git config --local commit.template ".gitmessage" + ''; }; } );