Skip to content

Commit

Permalink
Update scripts/validate-commit-messages.py
Browse files Browse the repository at this point in the history
Co-authored-by: anonymoose2 <23221704+anonymoose2@users.noreply.github.com>
  • Loading branch information
theo-o and anonymoose2 committed May 14, 2020
1 parent b388f41 commit 51fb45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate-commit-messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def pluralize(value, singular="", plural="s"):
if re.search(r"^(build|chore|ci|docs|feat|fix|perf|refactor|style|test)(\([a-z]+\))?: .*$", lines[0],) is None:
errors.append("First line does not match format")

if re.search(r"^[a-z:]+: (a-z).*$", lines[0],) is None:
if re.search(r"^[^:]: [a-z].*$", lines[0],) is None:
errors.append("First letter in commit message description is not lowercase.")

if len(lines) > 1 and lines[1]:
Expand Down

0 comments on commit 51fb45a

Please sign in to comment.