diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-19 15:05:45 +0100 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-19 15:05:45 +0100 |
commit | 9d842c704af906a1a7349c4f7c1c3f3200f97357 (patch) | |
tree | 089b6053deea12a7c1173e7cea5edf6848e59d1f /danger | |
parent | 0aa64cf80ccd7fda10641af0cd43c4c0a7f3e133 (diff) | |
download | gitlab-ce-9d842c704af906a1a7349c4f7c1c3f3200f97357.tar.gz |
Ignore revert commits
Diffstat (limited to 'danger')
-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 |