Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-02-19 17:05:45 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2019-02-19 17:05:45 +0300
commit9d842c704af906a1a7349c4f7c1c3f3200f97357 (patch)
tree089b6053deea12a7c1173e7cea5edf6848e59d1f /danger/commit_messages
parent0aa64cf80ccd7fda10641af0cd43c4c0a7f3e133 (diff)
Ignore revert commits
Diffstat (limited to 'danger/commit_messages')
-rw-r--r--danger/commit_messages/Dangerfile3
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