Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b608d773a5 | |||
|
2bf523b167
|
14
README.MD
14
README.MD
@@ -12,6 +12,12 @@ githooks {
|
||||
}
|
||||
```
|
||||
|
||||
При запуске хука "commit-msg" будет выполнена команда:
|
||||
|
||||
```shell
|
||||
./gradlew --console=plain -q :commitlint -PgitCommitMessageFile="$1"
|
||||
```
|
||||
|
||||
| Настройка | Описание |
|
||||
|:---------------|:---------------------------|
|
||||
| `"commit-msg"` | Указание названия хука |
|
||||
@@ -42,9 +48,9 @@ gradle githooks
|
||||
|
||||
## Подключение
|
||||
|
||||
```groovy
|
||||
//settings.gradle
|
||||
`settings.gradle`:
|
||||
|
||||
```groovy
|
||||
pluginManagement {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
@@ -53,9 +59,9 @@ pluginManagement {
|
||||
}
|
||||
```
|
||||
|
||||
```groovy
|
||||
//build.gradle
|
||||
`build.gradle`:
|
||||
|
||||
```groovy
|
||||
plugins {
|
||||
id "ru.di9.gradle.githooks" version "1.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user