mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-07-01 18:40:59 +00:00
Add syntax checks to Dangerfile
This commit is contained in:
@ -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']
|
||||
|
Reference in New Issue
Block a user