-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDangerfile
18 lines (16 loc) · 922 Bytes
/
Dangerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if github.branch_for_base == "master"
if !git.modified_files.include? "docs/*"
warn 'Did you remember to generate documentation via dokku? (Hint: `./gradlew dokka`)'
end
if !git.modified_files.include? "CHANGELOG.md"
fail 'You need to edit the CHANGELOG.md file.'
end
android_version_change.assert_version_name_changed("wendy/build.gradle")
end
if git.modified_files.include? "build.gradle" or git.modified_files.include? "wendy/build.gradle"
warn "I see you edited a `build.gradle` file. Keep in mind that unless you are simply upgrading version numbers of libraries, that is ok. If you are adding dependencies, you may get your PR denied to keep the library slim."
end
# Generate the dokka docs and output the docs to the PR to assert there are no warnings.
`./bin/install_android_sdk.sh`
generateDocsOutput = `./gradlew dokka`
markdown "Output of generating docs: \n ```#{generateDocsOutput}```"