Skip to content

Commit

Permalink
fixup! 👷(github) setup linter on git commits
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaudantoine committed Mar 5, 2024
1 parent 2c558ce commit 3d25a5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitlint/gitlint_emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ def validate(self, title, _commit):
pattern = r"^({:s})\(.*\)\s[a-z].*$".format("|".join(emojis))
if not re.search(pattern, title):
violation_msg = 'Title does not match regex "<gitmoji>(<scope>) <subject>"'
return [RuleViolation(self.id, violation_msg, title)]
return [RuleViolation(self.id, violation_msg, title)]

#WIP

0 comments on commit 3d25a5c

Please sign in to comment.