{"id":25080903,"url":"https://github.com/joeapearson/devbox-git-hooks","last_synced_at":"2025-10-05T00:58:29.844Z","repository":{"id":275308852,"uuid":"924926328","full_name":"joeapearson/devbox-git-hooks","owner":"joeapearson","description":"Git hooks support for devbox","archived":false,"fork":false,"pushed_at":"2025-02-09T14:14:03.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T00:58:25.483Z","etag":null,"topics":["devbox","git-hooks"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeapearson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-30T22:14:08.000Z","updated_at":"2025-02-09T14:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0837778-b810-4c37-af5b-984aeaccad40","html_url":"https://github.com/joeapearson/devbox-git-hooks","commit_stats":null,"previous_names":["joeapearson/devbox-git-hooks"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joeapearson/devbox-git-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeapearson%2Fdevbox-git-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeapearson%2Fdevbox-git-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeapearson%2Fdevbox-git-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeapearson%2Fdevbox-git-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeapearson","download_url":"https://codeload.github.com/joeapearson/devbox-git-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeapearson%2Fdevbox-git-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395909,"owners_count":25979690,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["devbox","git-hooks"],"created_at":"2025-02-07T04:35:35.499Z","updated_at":"2025-10-05T00:58:29.824Z","avatar_url":"https://github.com/joeapearson.png","language":"Shell","readme":"# devbox-git-hooks\n\nA plug-in that integrates git hooks with [devbox], particularly useful for running a `pre-commit` script defined in\ndevbox.\n\n## Usage\n\n### Installation\n\nAdd `\"github:joeapearson/devbox-git-hooks\"` to your [devbox.json] `include` list.\n\n### Adding hooks\n\n1. Add a script to your [devbox.json] `shell.scripts` map matching the name of the git hook you'd like to invoke devbox. For example, `\"pre-commit\"`, `\"post-commit\"` and so on.\n2. `.git/hooks` will be checked for an existing hook. If one exists, it'll be left unmodified.\n3. If not already existing, a hook will be created, pointing to `devbox run HOOK_NAME`\n\nMore information on git hooks is found [here](https://git-scm.com/docs/githooks).\n\n### Removing hooks\n\n1. Remove the entry from `shell.scripts`.\n2. Check and delete the associated `.git/hooks/HOOK_NAME`\n\n### Example devbox.json\n\n```json\n{\n  \"$schema\": \"https://raw.githubusercontent.com/jetify-com/devbox/0.13.7/.schema/devbox.schema.json\",\n  \"packages\": [\"shellcheck@latest\"],\n  \"shell\": {\n    \"scripts\": {\n      \"pre-commit\": [\"shellcheck *.sh\"]\n    }\n  },\n  \"include\": [\"github:joeapearson/devbox-git-hooks\"]\n}\n```\n\nDemonstrates how you might use [shellcheck] to lint shell scripts before committing changes.\n\n### CI environments\n\nIf `CI` environment variable is set then this plug-in does nothing.\n\n[devbox]: https://www.jetify.com/docs/devbox\n[devbox.json]: https://www.jetify.com/docs/devbox/configuration/\n[shellcheck]: https://www.shellcheck.net\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeapearson%2Fdevbox-git-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeapearson%2Fdevbox-git-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeapearson%2Fdevbox-git-hooks/lists"}