{"id":24746745,"url":"https://github.com/kraymer/brack","last_synced_at":"2025-10-10T16:30:39.764Z","repository":{"id":146210386,"uuid":"326629281","full_name":"Kraymer/brack","owner":"Kraymer","description":"The branch name acknowledger. Git pre-commit hook to enforce a branches naming policy.","archived":false,"fork":false,"pushed_at":"2021-12-16T20:37:20.000Z","size":150,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T00:33:38.005Z","etag":null,"topics":["branch","git"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Kraymer.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":"2021-01-04T09:17:19.000Z","updated_at":"2024-10-11T19:49:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"c879dcc3-7a60-491c-a24c-d6a5ed8476ef","html_url":"https://github.com/Kraymer/brack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Kraymer/brack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kraymer%2Fbrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kraymer%2Fbrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kraymer%2Fbrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kraymer%2Fbrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kraymer","download_url":"https://codeload.github.com/Kraymer/brack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kraymer%2Fbrack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004706,"owners_count":26083750,"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-10T02:00:06.843Z","response_time":62,"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":["branch","git"],"created_at":"2025-01-28T04:32:56.573Z","updated_at":"2025-10-10T16:30:39.759Z","avatar_url":"https://github.com/Kraymer.png","language":"Shell","funding_links":["https://ko-fi.com/kraymer"],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n    \u003cimg alt=\"Logo\" src=\"https://github.com/Kraymer/brack/raw/master/docs/logo.png\" width=400\u003e\u003c/img\u003e\u003cbr\u003e\n    BRACK: The Relentless Git Branch Name Acknowledger\n\u003c/h2\u003e\n\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/kraymer/brack/blob/master/LICENSE\"\u003e\u003cimg alt=\"License: MIT\" src=\"https://github.com/kraymer/brack/raw/master/docs/license.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://ko-fi.com/kraymer\"\u003e\u003cimg alt=\"Donate\" src=\"https://img.shields.io/badge/-%E2%99%A1%20Donate%20-ff69b4\"\u003e\u003c/img\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e **/bɹək/** :\n\u003e\n\u003e 1.  *n.* efficient tracking dog of the foxhound family. Friendly and not very intelligent.\n\u003e 2.  *n.* git pre-commit hook to enforce a branch naming policy across your project. Portmanteau word for **Br**anch **Ack**nowledger. \n\n`brack` is a plugin for [pre-commit](https://github.com/pre-commit/pre-commit) that rejects commits when branch name does not validate a predefined format.\n\n\n### Installation\n\nCopy `pre_commit_hooks/brack` to your `.git/hooks/` folder and rename it as `pre-commit`.\n\nOr if you use [pre-commit](https://github.com/pre-commit/pre-commit) framework, add this to your `.pre-commit-config.yaml` :\n\n```yaml\n-   repo: https://github.com/kraymer/brack\n    rev: main\n    hooks:\n    -   id: brack  \n\n```\n\n### Configuration\n\nBy default branch name must match the regex `\"^(feature|bugfix|improvement|library|prerelease|release|hotfix)\\/[a-z0-9._-]+$\"`.\n\nIf you prefer to use a custom regex, edit your `.pre-commit-config.yaml` to give it as argument to the script :\n\n~~~\n    -   id: brack\n        args: [-r, \"\u003cYOUR_REGEX\u003e\"]\n~~~\n\nBeware that regex must be compliant with [POSIX Basic Regular Syntax](https://en.wikipedia.org/wiki/Regular_expression#POSIX).\n\n### Alternative\n\n[no_commit_to_branch](https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/no_commit_to_branch.py) is a hook provided with pre-commit that accomplishes the same thing but the logic is reversed : you define a regex that matches the branches you want NOT authorize commit to.  \nDepending on your usage, picking one or the other might facilitate maintenance of the regex.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkraymer%2Fbrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkraymer%2Fbrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkraymer%2Fbrack/lists"}