Add Danger
This commit is contained in:
parent
7fc0545b5c
commit
b0e2f06a8b
@ -6,12 +6,14 @@ node_js:
|
|||||||
before_install:
|
before_install:
|
||||||
- rvm install 2.2
|
- rvm install 2.2
|
||||||
- gem install awesome_bot
|
- gem install awesome_bot
|
||||||
|
- gem install danger
|
||||||
script:
|
script:
|
||||||
- node test.js
|
- node test.js
|
||||||
- awesome_bot README.md --allow-dupe --allow-redirect --allow-ssl -w notepad.cc,www.invoiceplane.com,proxy.donttrustrobots.nl,demo.phproject.org,dev.webtrees.net
|
- awesome_bot README.md --allow-dupe --allow-redirect --allow-ssl -w notepad.cc,www.invoiceplane.com,proxy.donttrustrobots.nl,demo.phproject.org,dev.webtrees.net
|
||||||
|
- danger
|
||||||
#Whitelisted Reason
|
#Whitelisted Reason
|
||||||
#www.invoiceplane.com awesome_bot receives error 500, works fine from browser
|
#www.invoiceplane.com awesome_bot receives error 500, works fine from browser
|
||||||
#notepad.cc not an actual link, mentioned in description
|
#notepad.cc not an actual link, mentioned in description
|
||||||
#proxy.donttrustrobots.nl site down, issue submitted: https://github.com/swiperproxy/swiperproxy/issues/27
|
#proxy.donttrustrobots.nl site down, issue submitted: https://github.com/swiperproxy/swiperproxy/issues/27
|
||||||
#demo.phproject.org server issues, issue submitted: https://github.com/Alanaktion/phproject/issues/257
|
#demo.phproject.org server issues, issue submitted: https://github.com/Alanaktion/phproject/issues/257
|
||||||
#dev.webtrees.net 403 error only in trvis ci, works fine from browser
|
#dev.webtrees.net 403 error only in trvis ci, works fine from browser
|
||||||
|
15
Dangerfile
Normal file
15
Dangerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
# Ensure there is a summary for a pull request
|
||||||
|
fail 'Please provide a summary in the Pull Request description' if github.pr_body.length < 5
|
||||||
|
|
||||||
|
# Warn when there are merge commits in the diff
|
||||||
|
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
|
||||||
|
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']
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user