Skip to content

Commit

Permalink
Laberer error
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnan05 committed Apr 1, 2024
1 parent ece03d7 commit b059df8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions .github/workflows/commit_rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
rules:
- name: "Commit message length"
description: "Ensure commit messages are not too long"
pattern: ".{1,50}"
error_message: "Commit messages should be between 1 and 50 characters long"

- name: "Capitalized subject"
description: "Ensure commit message subject starts with a capital letter"
pattern: "^[A-Z].*"
error_message: "Commit message subject should start with a capital letter"

- name: "Imperative mood"
description: "Ensure commit message subject is in imperative mood"
pattern: "(^fix|^update|^add|^remove|^refactor|^implement|^merge|^resolve|^enhance|^correct|^optimize|^adjust|^improve|^change|^test|^doc|^style|^clean)(s|es|ed|ing)?\\b"
error_message: "Commit message subject should use imperative mood"

0 comments on commit b059df8

Please sign in to comment.