feat: create repository
This commit is contained in:
62
README.MD
Normal file
62
README.MD
Normal 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"
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user