{"id":18947482,"url":"https://github.com/pepperkit/git-hooks-gradle-plugin","last_synced_at":"2026-03-08T01:33:03.144Z","repository":{"id":208775769,"uuid":"676017648","full_name":"pepperkit/git-hooks-gradle-plugin","owner":"pepperkit","description":"Gradle plugin for easy git hooks configuration.","archived":false,"fork":false,"pushed_at":"2024-07-15T00:26:23.000Z","size":94,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-05T00:30:47.985Z","etag":null,"topics":["git","git-hooks","gradle","gradle-plugin","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepperkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-08T08:43:59.000Z","updated_at":"2024-09-08T09:13:26.000Z","dependencies_parsed_at":"2023-11-23T08:47:35.459Z","dependency_job_id":"99e6b099-6ee7-40e8-8a59-63e10b4905f1","html_url":"https://github.com/pepperkit/git-hooks-gradle-plugin","commit_stats":null,"previous_names":["pepperkit/git-hooks-gradle-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pepperkit/git-hooks-gradle-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-gradle-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-gradle-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-gradle-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-gradle-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepperkit","download_url":"https://codeload.github.com/pepperkit/git-hooks-gradle-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepperkit%2Fgit-hooks-gradle-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30240898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"ssl_error","status_checked_at":"2026-03-08T00:55:48.608Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-hooks","gradle","gradle-plugin","java"],"created_at":"2024-11-08T13:10:06.457Z","updated_at":"2026-03-08T01:33:03.112Z","avatar_url":"https://github.com/pepperkit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Hooks Gradle Plugin\n[![Java CI with Gradle](https://github.com/pepperkit/git-hooks-gradle-plugin/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/pepperkit/git-hooks-gradle-plugin/actions/workflows/build.yml)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-gradle-plugin\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-gradle-plugin)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-gradle-plugin\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-gradle-plugin)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-gradle-plugin\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-gradle-plugin)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=pepperkit_git-hooks-gradle-plugin\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=pepperkit_git-hooks-gradle-plugin)\n\nGradle plugin for easy git hooks configuration.\n\n## Usage\nAdd the plugin into your `build.gradle`, configure the hooks, and optionally configure the build task to be dependant\ninitGitHooks task, to install the hooks each time the project is rebuild.\n\nThe example with *pre-commit* and *pre-push* hooks configured, will look like this:\n```groovy\nplugins {\n    id 'io.github.pepperkit.git-hooks-gradle-plugin' version '1.0.0'\n}\n\ncompileJava {\n    // Initialize git hooks each time the project is compiled \n    dependsOn initGitHooks\n}\n\ngitHooksGradlePlugin {\n    hooks = [\n            // Run checkstyle plugin before each commit attempt\n            'pre-commit' : 'gradle -q checkstyleMain',\n            // Run unit tests before each push attempt\n            'pre-push' : 'gradle -q test'\n    ]\n}\n```\n\nHook's content is any command line script, which is considered successful if exit code is equal to `0`, and not otherwise.\nIf execution of the script is successful, git action will be proceeded, if not - it will be cancelled.\n\n## Project's structure\n```\n└── src\n    ├── main                # code of the plugin\n    ├── test                # unit tests\n    └── system-test         # system tests\n        └── resources       # system tests scenarios and pre-configured gradle files needed for the tests\n```\n\nMore about pepperkit projects could be found on its website: https://pepperkit.github.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepperkit%2Fgit-hooks-gradle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepperkit%2Fgit-hooks-gradle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepperkit%2Fgit-hooks-gradle-plugin/lists"}