-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To monitor new pull requests to the repo, this will check to make sure that when changes are made the changelog is updated. Danger allows for so many customizations but this is simply a basic one to start.
- Loading branch information
1 parent
810eab1
commit 0b2117d
Showing
4 changed files
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Check to see if any changes were made to Spruce library | ||
has_library_changes = !git.modified_files.grep(/Sources/).empty? | ||
|
||
# warn if this PR is above 200 lines | ||
warn("Big PR") if git.lines_of_code > 200 | ||
|
||
# check to see if the changelog has been updated | ||
no_changelog_entry = !git.modified_files.include?("Changelog.md") | ||
if has_app_changes && no_changelog_entry | ||
fail("Any changes to the Spruce library need to be documented in the Changelog") | ||
end | ||
|
||
# Run SwiftLint | ||
swiftlint.lint_files |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ gem 'fastlane' | |
gem 'cocoapods' | ||
gem 'slather' | ||
gem 'coveralls', require: false | ||
gem 'danger' |
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
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