Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
result
Comment thread
BenZuckier marked this conversation as resolved.
result-*
6 changes: 5 additions & 1 deletion packages/conventional-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ writeShellApplication {
LOCALE_ARCHIVE = "${lib.getLib glibcLocales}/lib/locale/locale-archive";
};
text = ''
exec grep -P '^(build|chore|ci|docs|feat|fix|perf|p?refactor|revert|style|test)(\([\w/-]+\))?!?: '
reg='^(build|chore|ci|docs|feat|fix|perf|p?refactor|revert|style|test)(\([\w/-]+\))?!?: '
if ! grep -P "$reg"; then
printf "Message must match conventional commit pattern:\n\n%s\n" "$reg"
exit 1
fi
'';
derivationArgs.postCheck = ''
(
Expand Down