.danger/merge_commits.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# Check for merge commits
if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
  warn "Please rebase to get rid of the merge commits in this PR"
end