Skip to content

Commit

Permalink
style(git): Add plugin to adhere to conventional commit git messages
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest committed Oct 19, 2023
1 parent 184ed24 commit 14c4aff
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
include 'core', 'custom-ktlint-rules'
plugins {
id("org.danilopianini.gradle-pre-commit-git-hooks") version "1.1.11"
}

include 'core', 'custom-ktlint-rules'

gitHooks { extension ->
extension.with {
commitMsg { context ->
context.with {
conventionalCommits { conventionalCommits ->
conventionalCommits.with {
defaultTypes()
}
}
}
}
createHooks(true)
}
}

0 comments on commit 14c4aff

Please sign in to comment.