mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-06-20 13:58:26 +02:00
Add syntax checks to Dangerfile
This commit is contained in:
parent
b0e2f06a8b
commit
c2f87c6cc2
3 changed files with 18 additions and 3 deletions
|
@ -9,6 +9,14 @@ warn 'Please rebase to get rid of the merge commits in this Pull Request' if git
|
|||
require 'json'
|
||||
results = File.read 'ab-results-README.md-markdown-table.json'
|
||||
j = JSON.parse results
|
||||
if j['error']==true
|
||||
fail j['title']
|
||||
markdown j['message']
|
||||
|
||||
# Check syntx
|
||||
require 'json'
|
||||
results = File.read 'syntaxcheck.json'
|
||||
j = JSON.parse results
|
||||
if j['error']==true
|
||||
fail j['title']
|
||||
markdown j['message']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue