-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into feat/10428-existing-bundled-item-and-quanti…
…ty-rules * trunk: (191 commits) Update WooCommerce/WooCommerceTests/ViewRelated/LedgerTableViewCellTests.swift Update WooCommerce/Classes/ViewRelated/ReusableViews/LedgerTableViewCell.swift Update WooCommerce/Classes/ViewRelated/Orders/Order Creation/CustomAmounts/OrderCustomAmountsSection.swift Move track event to viewmodel. Add tests Separate add-edit track events to separate methods Update test Track tap on add and edit discount Update “Add” discount event button update release notes Refactor totalPriceAfterDiscountLabel Update CocoaPods Update Dangermattic gem Move Dangerfile to project root, per Danger standard Update how activesupport version is locked Improve Dangerfile code Use DANGER_GITHUB_API_TOKEN from CI env Fix Cocoapods Active Support issue (CocoaPods/CocoaPods#12081) Add initial Danger setup with Dangermattic 11009 Add hiding of Set up button to 16.0 release Fix hound warning ... # Conflicts: # WooCommerce/WooCommerceTests/ViewRelated/Orders/Order Creation/ProductRowViewModelTests.swift
- Loading branch information
Showing
91 changed files
with
1,899 additions
and
1,393 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
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,7 @@ | ||
#!/bin/bash -eu | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
bundle install | ||
|
||
echo "--- Running Danger: PR Check" | ||
bundle exec danger --fail-on-errors=true --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
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,37 @@ | ||
# frozen_string_literal: true | ||
|
||
def release_branch? | ||
danger.github.branch_for_base.start_with?('release/') || danger.github.branch_for_base.start_with?('hotfix/') | ||
end | ||
|
||
def main_branch? | ||
danger.github.branch_for_base == 'trunk' | ||
end | ||
|
||
def wip_feature? | ||
has_wip_label = github.pr_labels.any? { |label| label.include?('WIP') } | ||
has_wip_title = github.pr_title.include?('WIP') | ||
|
||
has_wip_label || has_wip_title | ||
end | ||
|
||
return if github.pr_labels.include?('Releases') | ||
|
||
github.dismiss_out_of_range_messages | ||
|
||
manifest_pr_checker.check_all_manifest_lock_updated | ||
|
||
labels_checker.check( | ||
do_not_merge_labels: ['status: do not merge'], | ||
required_labels: [//], | ||
required_labels_error: 'PR requires at least one label.' | ||
) | ||
|
||
view_changes_need_screenshots.view_changes_need_screenshots | ||
|
||
pr_size_checker.check_diff_size | ||
|
||
# skip check for draft PRs and for WIP features unless the PR is against the main branch or release branch | ||
milestone_checker.check_milestone_due_date(days_before_due: 2) if !github.pr_draft? && (!wip_feature? || (release_branch? || main_branch?)) | ||
|
||
rubocop.lint(inline_comment: true, fail_on_inline_comment: true, include_cop_names: true) |
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
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.