mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2024-11-30 10:56:51 +01:00
Danger warn instead of fail for checkboxes
This commit is contained in:
parent
6f2f58ec5f
commit
a0524a64ce
@ -4,8 +4,8 @@ has_readme_changes = git.modified_files.include?("README.md")
|
|||||||
# Ensure there is a summary for a pull request
|
# 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
|
fail 'Please provide a summary in the Pull Request description' if github.pr_body.length < 5
|
||||||
|
|
||||||
# Check if PR guidelines are checked.
|
# Warn if PR guideline boxes are not checked.
|
||||||
fail 'Please check PR guidelines and check the boxes.' if github.pr_body.include? '- [ ]'
|
warn 'Please check PR guidelines and check the boxes.' if github.pr_body.include? '- [ ]'
|
||||||
|
|
||||||
# Warn if pull request is not updated
|
# Warn if pull request is not updated
|
||||||
warn 'Please update the Pull Request title to contain the script name' if github.pr_title.include? 'Update README.md'
|
warn 'Please update the Pull Request title to contain the script name' if github.pr_title.include? 'Update README.md'
|
||||||
|
Loading…
Reference in New Issue
Block a user