Created
May 9, 2020 22:57
-
-
Save jgsamudio/c87a994b02bad7670f53af899293c435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - 1 - Pull Request Description | |
let pullRequestBody = danger.github.pullRequest.body ?? "" | |
if !pullRequestBody.contains("๐ฒ What") || | |
!pullRequestBody.contains("๐ See") || | |
!pullRequestBody.contains("๐ค Why") || | |
!pullRequestBody.contains("๐ How") { | |
warn(""" | |
Pull request description is missing required information: | |
- ๐ฒ What | |
- ๐ค Why | |
- ๐ How | |
- ๐ See | |
Please use the pull request:template: | |
https://github.com/kickstarter/ios-oss/blob/master/.github/PULL_REQUEST_TEMPLATE.md | |
""") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment