diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-19 17:05:45 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-19 17:05:45 +0300 |
commit | 9d842c704af906a1a7349c4f7c1c3f3200f97357 (patch) | |
tree | 089b6053deea12a7c1173e7cea5edf6848e59d1f | |
parent | 0aa64cf80ccd7fda10641af0cd43c4c0a7f3e133 (diff) |
Ignore revert commits
-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 |