mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 03:22:03 +00:00
add git hook installation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
402a1bd3c3
commit
0f4f04da8d
@ -141,6 +141,15 @@ If you set your `user.name` and `user.email` git configs, you can sign your comm
|
||||
You can also use git [aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases) like `git config --global alias.ci 'commit -s'`.
|
||||
Now you can commit with `git ci` and the commit will be signed.
|
||||
|
||||
### Git hooks
|
||||
|
||||
We provide git hooks to make development process easier for both the developer and the reviewers.
|
||||
To install them, just run:
|
||||
|
||||
```bash
|
||||
./gradlew installGitHooks
|
||||
```
|
||||
|
||||
## Contribution process
|
||||
|
||||
Contribute your code targeting/based-on the branch ```master```.
|
||||
|
@ -334,6 +334,14 @@ dependencies {
|
||||
gplayImplementation "com.google.firebase:firebase-messaging:23.0.0"
|
||||
}
|
||||
|
||||
task installGitHooks(type: Copy, group: "development") {
|
||||
description = "Install git hooks"
|
||||
from("../scripts/hooks") {
|
||||
include '*'
|
||||
}
|
||||
into '../.git/hooks'
|
||||
}
|
||||
|
||||
detekt {
|
||||
reports {
|
||||
xml {
|
||||
|
Loading…
Reference in New Issue
Block a user