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

feat: Fail PRs that edit README.md (#441)

fixes #436
This commit is contained in:
Russell Dempsey 2022-09-28 15:34:12 -07:00 committed by GitHub
parent b5be7e1c24
commit 76d865884c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,11 @@ const githubMetadata = danger.git.fileMatch('.github/**')
const yamlData = danger.git.fileMatch('data/**')
const scripts = danger.git.fileMatch('scripts/**')
const src = danger.git.fileMatch('src/**')
const readme = danger.git.fileMatch('README.md')
if (readme.edited) {
fail('Please do not edit the README directly. It is generated from the data in the data/ directory.')
}
if (githubMetadata.edited) {
message('Changes were made within the .github folder.')