Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pataruco/b29a6b83e7f7c5d144f188288f361d79 to your computer and use it in GitHub Desktop.

Select an option

Save pataruco/b29a6b83e7f7c5d144f188288f361d79 to your computer and use it in GitHub Desktop.
GitHub repo ruleset for conventional commits
{
"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