forked from vsouza/awesome-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
# Ensure there is a summary for a pull request | ||
fail "Please provide a summary in the Pull Request description" if github.pr_body.length < 5 | ||
fail 'Please provide a summary in the Pull Request description' if github.pr_body.length < 5 | ||
|
||
# Warn when there are merge commits in the diff | ||
if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ } | ||
warn 'Please rebase to get rid of the merge commits in this Pull Request' | ||
end | ||
warn 'Please rebase to get rid of the merge commits in this Pull Request' if git.commits.any? { |c| c.message =~ /^Merge branch 'master'/ } | ||
|
||
# Only one library per pull request | ||
fail "Please only add one library per Pull Request" if git.lines_of_code > 1 | ||
fail Please only add one library per Pull Request' if git.lines_of_code > 1 | ||
# Pull request title warning | ||
# Warn if pull request is not updated | ||
warn 'Please update the Pull Request title' if github.pr_title.include? 'Update README.md' |