forked from n8ebel/GitHubActionsAutomationSandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDangerfile
More file actions
14 lines (10 loc) · 636 Bytes
/
Dangerfile
File metadata and controls
14 lines (10 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ignore inline messages that are outside of the current diff
github.dismiss_out_of_range_messages
message "Thanks @#{github.pr_author} 👍👍"
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
warn("PR is a Work in Progress and not ready to merge") if github.pr_title.include? "[WIP]"
# Encourage contributors to write useful descriptions
warn("Please provide a Pull Request description ...") if github.pr_body.length < 20
# Report inline ktlint issues
checkstyle_format.base_path = Dir.pwd
checkstyle_format.report 'app/build/reports/ktlint/ktlintMainSourceSetCheck/ktlintMainSourceSetCheck.xml'