From 9d842c704af906a1a7349c4f7c1c3f3200f97357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Tue, 19 Feb 2019 15:05:45 +0100 Subject: Ignore revert commits --- danger/commit_messages/Dangerfile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'danger/commit_messages') 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 -- cgit v1.2.3