diff options
author | sudoforge <no-reply@sudoforge.com> | 2024-07-18 21:02:18 -0700 |
---|---|---|
committer | sudoforge <9c001b67637a@sudoforge.com> | 2024-07-20 16:45:55 -0700 |
commit | 825eecefa1650737e661ad8eae4f07bb19b45ae0 (patch) | |
tree | 6c3081d0a036a5742ffbc2e9f13020b891101626 | |
parent | bf753031d012b106ddafff2e3bfd4422db5e4935 (diff) | |
download | git-bug-825eecefa1650737e661ad8eae4f07bb19b45ae0.tar.gz |
feat: add a commit message template
Change-Id: Iea66080cc9f7f49bbaac42ca0eb51de5dfc4bcdc
-rw-r--r-- | .gitmessage | 33 | ||||
-rw-r--r-- | flake.nix | 5 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.gitmessage b/.gitmessage new file mode 100644 index 00000000..51922c05 --- /dev/null +++ b/.gitmessage @@ -0,0 +1,33 @@ + +################################################################################ +# COMMIT MESSAGE FORMAT +# +# ``` +# <type>: <subject> +# <BLANK LINE> +# [body] +# <BLANK LINE> +# [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 <type>: +# - 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 +################################################################################ @@ -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" + ''; }; } ); |