-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dangerfile
27 lines (23 loc) · 894 Bytes
/
Dangerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
if github.pr_title.include? "[WIP]"
warn "PR is classed as Work in Progress"
end
# Warning to encourage a PR description
if github.pr_body.length == 0
warn "Please provide a summary in the PR description to make it easier to review"
end
# Ensure that labels have been used on the PR
if github.pr_labels.empty?
failure "Please add labels to this PR"
end
# Make danger out jira ticket link
jira.check(
key: ["SAAS"],
url: "https://dimagi-dev.atlassian.net/browse",
fail_on_warning: false
)
# Output lint issues on PR using 'danger-android_lint' https://github.com/loadsmart/danger-android_lint
android_lint.report_file = "app/build/reports/lint-results-commcareRelease.xml"
android_lint.filtering_lines = true
android_lint.skip_gradle_task = true
android_lint.lint(inline_mode: true)