1
0
Fork 0
mirror of https://github.com/ipfs/awesome-ipfs.git synced 2024-11-20 11:28:35 -05:00
ipfs/dangerfile.js

15 lines
467 B
JavaScript
Raw Normal View History

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')
2023-09-18 06:21:02 -04:00
if (readme.edited && awesomeBotResults.error) {
fail(awesomeBotResults.title)
markdown(awesomeBotResults.message)
}
if (githubMetadata.edited) {
message('Changes were made within the .github folder.')
}