Ignore revert commits

This commit is contained in:
Kamil Trzciński 2019-02-19 15:05:45 +01:00
parent 0aa64cf80c
commit 9d842c704a
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ def lint_commits(commits)
# separate from enforcing good commit messages.
next if commit.message.start_with?('Merge branch')
# We ignore revert commits as they are well structured by Git already
next if commit.message.start_with?('Revert "')
subject, separator, details = commit.message.split("\n", 3)
if subject.split.length < 3