mirror of
https://github.com/ipfs/awesome-ipfs.git
synced 2024-10-01 01:35:37 -04:00
15 lines
467 B
JavaScript
15 lines
467 B
JavaScript
const { danger, markdown, fail, warn, message } = require('danger')
|
|
const awesomeBotResults = require('./ab-results-README.md-markdown-table.json')
|
|
|
|
const githubMetadata = danger.git.fileMatch('.github/**')
|
|
const readme = danger.git.fileMatch('README.md')
|
|
|
|
if (readme.edited && awesomeBotResults.error) {
|
|
fail(awesomeBotResults.title)
|
|
markdown(awesomeBotResults.message)
|
|
}
|
|
|
|
if (githubMetadata.edited) {
|
|
message('Changes were made within the .github folder.')
|
|
}
|