From 1a950014cf5b4d415a20952971e04349510efcbc Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Mon, 23 Oct 2023 18:48:53 +0200 Subject: [PATCH] Improve Dangerfile code --- .buildkite/danger/Dangerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.buildkite/danger/Dangerfile b/.buildkite/danger/Dangerfile index efd7a4e5a52..3497942f696 100644 --- a/.buildkite/danger/Dangerfile +++ b/.buildkite/danger/Dangerfile @@ -2,17 +2,23 @@ return if github.pr_labels.include?('Releases') +github.dismiss_out_of_range_messages + 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 +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']