diff options
Diffstat (limited to 'danger/commit_messages/Dangerfile')
-rw-r--r-- | danger/commit_messages/Dangerfile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/danger/commit_messages/Dangerfile b/danger/commit_messages/Dangerfile index c20c8b77e6a..241462234c5 100644 --- a/danger/commit_messages/Dangerfile +++ b/danger/commit_messages/Dangerfile @@ -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 |