1

feat: create repository

This commit is contained in:
2024-05-22 04:40:13 +03:00
commit 51cf6fc83c
13 changed files with 568 additions and 0 deletions

62
README.MD Normal file
View File

@@ -0,0 +1,62 @@
# Git hooks plugin for Gradle
## Использование
### Настройка
```groovy
githooks {
"commit-msg" {
task = ":commitlint -PgitCommitMessageFile=\"\$1\""
}
}
```
| Настройка | Описание |
|:---------------|:---------------------------|
| `"commit-msg"` | Указание названия хука |
| `task` | Задача передаваемая Gradle |
**Список хуков**
- applypatch-msg
- commit-msg
- fsmonitor-watchman
- post-update
- pre-applypatch
- pre-commit
- pre-merge-commit
- prepare-commit-msg
- pre-push
- pre-rebase
- pre-receive
- push-to-checkout
- sendemail-validate
- update
### Запуск
```shell
gradle githooks
```
## Подключение
```groovy
//settings.gradle
pluginManagement {
repositories {
gradlePluginPortal()
maven { url "https://di9.ru/git/api/packages/Voomra/maven" }
}
}
```
```groovy
//build.gradle
plugins {
id "di9.githooks" version "1.0"
}
```