Mirror of Awesome Self Hosted
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
667 B

8 years ago
8 years ago
  1. # Ensure there is a summary for a pull request
  2. fail 'Please provide a summary in the Pull Request description' if github.pr_body.length < 5
  3. # Warn when there are merge commits in the diff
  4. warn 'Please rebase to get rid of the merge commits in this Pull Request' if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ }
  5. # Check links
  6. require 'json'
  7. results = File.read 'ab-results-README.md-markdown-table.json'
  8. j = JSON.parse results
  9. if j['error']==true
  10. fail j['title']
  11. markdown j['message']
  12. # Check syntx
  13. require 'json'
  14. results = File.read 'syntaxcheck.json'
  15. j = JSON.parse results
  16. if j['error']==true
  17. fail j['title']
  18. markdown j['message']
  19. end