We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d799a15 commit e4e0e99Copy full SHA for e4e0e99
Dangerfile
@@ -701,6 +701,14 @@ if github.branch_for_head !~ /^gh[0-9]+_/
701
)
702
end
703
704
+js_file = %r{^src/main/javascript/.*\.js$}
705
+css_file = %r{^src/main/webapp/.*\.css$}
706
+modified_resources = git.modified_files.any? { |file| file =~ js_file || file =~ css_file }
707
+updated_url = git.modified_files.include? 'src/main/java/ru/mystamps/web/Url.java'
708
+if modified_resources && !updated_url
709
+ warn("danger check: looks like you forgot to update `Url.RESOURCES_VERSION` after modifying JS/CSS file(s)")
710
+end
711
+
712
all_checks_passed = violation_report[:errors].empty? && violation_report[:warnings].empty? && violation_report[:messages].empty?
713
if all_checks_passed
714
message(
0 commit comments