Fix dangerfile
This commit is contained in:
parent
c99de42097
commit
4c67cc50ed
10
Dangerfile
10
Dangerfile
@ -27,10 +27,10 @@ end
|
|||||||
# Check syntax
|
# Check syntax
|
||||||
if has_readme_changes
|
if has_readme_changes
|
||||||
require 'json'
|
require 'json'
|
||||||
results = File.read 'syntaxcheck.json'
|
syntaxresults = File.read 'syntaxcheck.json'
|
||||||
j = JSON.parse results
|
sj = JSON.parse syntaxresults
|
||||||
if j['error']==true
|
if sj['error']==true
|
||||||
fail j['title']
|
fail sj['title']
|
||||||
markdown j['message']
|
markdown sj['message']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user