Skip to content

Instantly share code, notes, and snippets.

@jgsamudio
Created May 9, 2020 22:57
Show Gist options
  • Save jgsamudio/c87a994b02bad7670f53af899293c435 to your computer and use it in GitHub Desktop.
Save jgsamudio/c87a994b02bad7670f53af899293c435 to your computer and use it in GitHub Desktop.
// 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