lib/danger/plugin_support/plugin_linter.rb in danger-9.1.0 vs lib/danger/plugin_support/plugin_linter.rb in danger-9.2.0
- old
+ new
@@ -144,9 +144,10 @@
# added to either `warnings` or `errors`.
#
def apply_rules(json, type, rules)
rules.each do |rule|
next unless rule.function.call(json)
+
rule.metadata = json
rule.type = type
case rule.modifier
when :warning