-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial Danger setup with Dangermattic
- Loading branch information
Showing
7 changed files
with
194 additions
and
32 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,9 @@ | ||
#!/bin/bash -eu | ||
|
||
export DANGER_GITHUB_API_TOKEN=${GITHUB_TOKEN} | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
bundle install | ||
|
||
echo "--- Running Danger: PR Check" | ||
bundle exec danger --fail-on-errors=true --dangerfile=.buildkite/danger/Dangerfile --remove-previous-comments --danger_id=pr-check |
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,18 @@ | ||
# frozen_string_literal: true | ||
|
||
return if github.pr_labels.include?('Releases') | ||
|
||
manifest_pr_checker.check_gemfile_lock_updated | ||
labels_checker.check( | ||
required_labels: [//], | ||
required_labels_error: 'PR is missing at least one label.' | ||
) | ||
view_changes_need_screenshots.view_changes_need_screenshots | ||
pr_size_checker.check_diff_size | ||
android_unit_test_checker.check_missing_tests | ||
milestone_checker.check_milestone_due_date(days_before_due: 2) | ||
|
||
github.dismiss_out_of_range_messages | ||
rubocop.lint inline_comment: true, fail_on_inline_comment: true, include_cop_names: true | ||
|
||
warn "No reviewers have been set for this PR yet. Please request a review from **@\u2028Automattic/pocket-casts-android**." unless github.pr_json['assignee'] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
inherit_mode: | ||
merge: | ||
- Include | ||
|
||
AllCops: | ||
Exclude: | ||
- vendor/**/* | ||
Include: | ||
- .buildkite/danger/**/* | ||
NewCops: enable | ||
|
||
Layout/LineLength: | ||
Max: 180 | ||
Exclude: | ||
- fastlane/Fastfile | ||
- scripts/themes/generate_themes.rb | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- fastlane/Fastfile | ||
- scripts/themes/generate_themes.rb | ||
|
||
Metrics/MethodLength: | ||
Max: 30 | ||
Exclude: | ||
- fastlane/Fastfile | ||
- scripts/themes/generate_themes.rb | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- .buildkite/danger/Dangerfile |
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 +1 @@ | ||
2.7.4 | ||
3.2.2 |
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
Oops, something went wrong.