lib/wcc/commit_lint.rb in danger-wcc-0.0.5 vs lib/wcc/commit_lint.rb in danger-wcc-0.0.6

- old
+ new

@@ -100,11 +100,11 @@ def check_and_issue(klass, message, severity) c = klass.new(message, @config.fetch(klass.type, {})) return unless c.fail? messaging.issue([c.message, message[:sha]].join("\n"), - severity: severity) + severity: severity) end def checkers [ SubjectCapCheck, @@ -139,9 +139,10 @@ @config[:disable] || [] end def warning_checks return checks if @config[:warn] == :all + @config[:warn] || [] end def messages git.commits.map do |commit|