{"id":18810394,"url":"https://github.com/absaoss/sbt-git-hooks","last_synced_at":"2026-01-10T17:30:14.914Z","repository":{"id":49854149,"uuid":"499518402","full_name":"AbsaOSS/sbt-git-hooks","owner":"AbsaOSS","description":"SBT plugin to sync git hooks as part of the project","archived":false,"fork":false,"pushed_at":"2022-07-28T07:49:13.000Z","size":49,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-29T23:26:12.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbsaOSS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2022-06-03T13:17:32.000Z","updated_at":"2024-09-05T13:30:41.000Z","dependencies_parsed_at":"2022-08-28T03:20:18.299Z","dependency_job_id":null,"html_url":"https://github.com/AbsaOSS/sbt-git-hooks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbsaOSS%2Fsbt-git-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbsaOSS%2Fsbt-git-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbsaOSS%2Fsbt-git-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbsaOSS%2Fsbt-git-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbsaOSS","download_url":"https://codeload.github.com/AbsaOSS/sbt-git-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239744091,"owners_count":19689601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T23:20:04.180Z","updated_at":"2026-01-10T17:30:14.885Z","avatar_url":"https://github.com/AbsaOSS.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-git-hooks\n\n[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n[![Release](https://github.com/AbsaOSS/sbt-git-hooks/actions/workflows/release.yml/badge.svg)](https://github.com/AbsaOSS/sbt-git-hooks/actions/workflows/release.yml)\n\nsbt-git-hooks is an [sbt](http://www.scala-sbt.org) plugin for maintaining git hooks as part of your code.\n\nGit hooks originally reside in `.git/hooks` which is not versioned as part of the code, but it is something you\nwant to share with other contributors to your code. This plugin syncs git hooks from your project folder with the ones\nin the `.git/hooks` folder. \n\nSample files are ignored.\n\n## Getting started\n\nIn order to add the sbt-git-hooks plugin to your build, add the following line to `project/plugins.sbt`:\n\n``` sbt\naddSbtPlugin(\"za.co.absa.sbt\" % \"sbt-git-hooks\" % \"X.Y.Z\")\n```\n\nThen, optionally, in your `build.sbt` configure the following settings:\n\n```sbt\noverwriteGitHookFiles := true \ngitHookFilesLocation := \"project/git_hooks\"\n```\n\n- `overwriteGitHookFiles` setting allows you to overwrite the files already present in `.git/hooks`. Defaults to `false`\n- `gitHookFilesLocation` setting allows you to set a different folder for source of hook files. This is relative to the project. Defaults to `project/git_hooks` \n\n### Syncing hook files\n\nTo run a sync use `sbt syncGitHooks`.\n\n### Checking what files would get synced if any\n\nTo check which files would get synced and what would happen run `sbt getGitHooksToSync`\n\n### Requirements\n\n- Java 8 or higher\n- sbt 1.3.0 or higher\n\n## How to Release\n\nPlease see [this file](RELEASE.md) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabsaoss%2Fsbt-git-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabsaoss%2Fsbt-git-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabsaoss%2Fsbt-git-hooks/lists"}