{"id":22131312,"url":"https://github.com/rrxs/git-policy-validator","last_synced_at":"2026-04-09T23:34:48.637Z","repository":{"id":230969038,"uuid":"780605305","full_name":"rrxs/git-policy-validator","owner":"rrxs","description":"Node CLI to validate commit messages and branch names","archived":false,"fork":false,"pushed_at":"2024-04-02T12:44:01.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T06:04:34.580Z","etag":null,"topics":["branch-naming","cli","commit-msg","git","git-hooks","husky","javascript","node","pre-push","regex","typescript","validate","validation"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rrxs.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":"2024-04-01T20:23:38.000Z","updated_at":"2024-04-01T20:30:11.000Z","dependencies_parsed_at":"2025-01-29T14:52:59.563Z","dependency_job_id":null,"html_url":"https://github.com/rrxs/git-policy-validator","commit_stats":null,"previous_names":["rrxs/git-policy-validator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrxs%2Fgit-policy-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrxs%2Fgit-policy-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrxs%2Fgit-policy-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrxs%2Fgit-policy-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrxs","download_url":"https://codeload.github.com/rrxs/git-policy-validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245240828,"owners_count":20583102,"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":["branch-naming","cli","commit-msg","git","git-hooks","husky","javascript","node","pre-push","regex","typescript","validate","validation"],"created_at":"2024-12-01T18:32:31.814Z","updated_at":"2026-04-09T23:34:48.599Z","avatar_url":"https://github.com/rrxs.png","language":"TypeScript","readme":"# git-policy-validator\n\n```bash\n🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧\n\n  UNDER CONSTRUCTION\n\n🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧\n```\n\n## Description\n\nA simple CLI that can be used to validate branch and commit messages using a regex configuration.\n\nExamples of use:\n\n```bash\n# Validate commit message\ngvalidate -c \"Add new feature\"\n\n# Validate branch name\ngvalidate -b\n```\n\n### Configuration\n\nYou must use a config file named `.gvalidate.config.json`. Example config file.\n\n```json\n{\n  \"branch\": {\n    \"regexBranchName\": \"(feat|fix)/[A-Z]+-[0-9]+\",\n    \"ignoreList\": []\n  },\n  \"commit\": {\n    \"regexCommitMessage\": \"(feat|fix): [A-Z]+-[0-9]+ - .*\"\n  }\n}\n```\n\n## Todo\n\n- Unit tests\n- Custom error messages\n- [...]\n\n## Development\n\nTo run locally run the following commands.\n\n```bash\n# After cloning\nnpm i\n\nnpm run build:dev\n\nnpx gvalidate -c \"feat: Teste message\"\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrxs%2Fgit-policy-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrxs%2Fgit-policy-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrxs%2Fgit-policy-validator/lists"}