Commit Msg Script Context
Specialized hook context for commit-msg.
Properties
Functions
Link copied to clipboard
Appends the result of the provided function to the existing script.
Link copied to clipboard
Pre-configures the commit-msg script to check for a valid conventional commit message.
Link copied to clipboard
open fun tasks(task: TaskProvider<*>, vararg otherTasks: TaskProvider<*>, requireSuccess: Boolean = true)
Adds the provided tasks to the script, by invoking ./gradlew <taskname>. By default, a failure of the task implies a failure of the commit. To run a task without considering the failure critical, pass [requireSuccess] = false.