Created
March 7, 2026 19:54
-
-
Save pataruco/b29a6b83e7f7c5d144f188288f361d79 to your computer and use it in GitHub Desktop.
GitHub repo ruleset for conventional commits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Conventional Commits", | |
| "target": "branch", | |
| "enforcement": "active", | |
| "conditions": { | |
| "ref_name": { | |
| "include": ["~ALL"], | |
| "exclude": [] | |
| } | |
| }, | |
| "rules": [ | |
| { | |
| "type": "commit_message_pattern", | |
| "parameters": { | |
| "name": "Conventional Commit format", | |
| "negate": false, | |
| "operator": "regex", | |
| "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\(.+\\))?(!)?: .{1,100}(\\n.*)*$" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment