linkify resources in danger report

This commit is contained in:
Joffrey JAFFEUX 2018-07-26 10:53:45 -04:00 committed by GitHub
parent 467c529920
commit b0240190ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ end
prettier_offenses = `prettier --list-different "app/assets/stylesheets/**/*.scss" "app/assets/javascripts/**/*.es6" "test/javascripts/**/*.es6"`.split('\n') prettier_offenses = `prettier --list-different "app/assets/stylesheets/**/*.scss" "app/assets/javascripts/**/*.es6" "test/javascripts/**/*.es6"`.split('\n')
if !prettier_offenses.empty? if !prettier_offenses.empty?
fail(%{ fail(%{
This PR has multiple prettier offenses. We recommend configuring prettier linting in your editor: https://meta.discourse.org/t/prettier-code-formatting-tool/93212\n This PR has multiple prettier offenses. <a href='https://meta.discourse.org/t/prettier-code-formatting-tool/93212'>Using prettier</a>\n
#{prettier_offenses.join("\n")} #{prettier_offenses.map {|o| github.html_link(o) }.join("\n")}
}) })
end end