Update Dangerfile
This commit is contained in:
parent
2baa3cff6f
commit
f606bfb558
@ -9,6 +9,7 @@ warn 'Please update the Pull Request title to contain the script name' if github
|
||||
warn 'Please rebase to get rid of the merge commits in this Pull Request' if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
|
||||
|
||||
# Check links
|
||||
if [ -a ab-results-README.md-markdown-table.json ]
|
||||
require 'json'
|
||||
results = File.read 'ab-results-README.md-markdown-table.json'
|
||||
j = JSON.parse results
|
||||
@ -16,8 +17,10 @@ if j['error']==true
|
||||
fail j['title']
|
||||
markdown j['message']
|
||||
end
|
||||
end
|
||||
|
||||
# Check syntax
|
||||
if [ -a syntaxcheck.json ]
|
||||
require 'json'
|
||||
results = File.read 'syntaxcheck.json'
|
||||
j = JSON.parse results
|
||||
@ -25,3 +28,4 @@ if j['error']==true
|
||||
fail j['title']
|
||||
markdown j['message']
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user