Skip to content

Commit e2e1a1a

Browse files
committed
Merge remote-tracking branch 'origin/trunk' into merge/23.6-code-freeze-to-trunk
2 parents 0854765 + 21fffc2 commit e2e1a1a

264 files changed

Lines changed: 6748 additions & 4056 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash -eu
2+
3+
echo "--- :rubygems: Setting up Gems"
4+
bundle install
5+
6+
echo "--- Running Danger: PR Check"
7+
bundle exec danger --fail-on-errors=true --remove-previous-comments --danger_id=pr-check

.buildkite/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ steps:
2929
#################
3030
- group: "🕵️‍♂️ Linters"
3131
steps:
32+
- label: "☢️ Danger - PR Check"
33+
command: .buildkite/commands/danger-pr-check.sh
34+
plugins:
35+
- docker#v5.8.0:
36+
image: "public.ecr.aws/docker/library/ruby:3.2.2"
37+
propagate-environment: true
38+
environment:
39+
- "DANGER_GITHUB_API_TOKEN"
40+
if: "build.pull_request.id != null"
41+
retry:
42+
manual:
43+
permit_on_passed: true
44+
3245
- label: "🕵️ checkstyle"
3346
command: |
3447
cp gradle.properties-example gradle.properties

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
11
Fixes #
22

3-
To test:
3+
-----
4+
5+
## To Test:
6+
7+
<!-- Test instructions per dependency update: https://github.com/wordpress-mobile/WordPress-Android/blob/trunk/docs/test_instructions_per_dependency_update.md -->
8+
9+
-----
410

511
## Regression Notes
12+
613
1. Potential unintended areas of impact
714

15+
- TODO
816

917
2. What I did to test those areas of impact (or what existing automated tests I relied on)
1018

19+
- TODO
1120

1221
3. What automated tests I added (or what prevented me from doing so)
1322

14-
PR submission checklist:
23+
- TODO
24+
25+
-----
26+
27+
## PR Submission Checklist:
1528

1629
- [ ] I have completed the Regression Notes.
1730
- [ ] I have considered adding accessibility improvements for my changes.
1831
- [ ] I have considered if this change warrants user-facing release notes and have added them to `RELEASE-NOTES.txt` if necessary.
1932

20-
UI Changes testing checklist:
33+
-----
34+
35+
## UI Changes Testing Checklist:
2136

2237
- [ ] Portrait and landscape orientations.
2338
- [ ] Light and dark modes.

.rubocop.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
AllCops:
4+
Exclude:
5+
- vendor/**/*
6+
NewCops: enable
7+
8+
Metrics/BlockLength:
9+
Exclude:
10+
- fastlane/Fastfile
11+
- fastlane/lanes/*.rb
12+
13+
Metrics/MethodLength:
14+
Max: 30
15+
16+
Layout/LineLength:
17+
Max: 180
18+
19+
Lint/ConstantDefinitionInBlock:
20+
Exclude:
21+
- fastlane/lanes/localization.rb
22+
23+
Style/HashSyntax:
24+
EnforcedShorthandSyntax: never

.rubocop_todo.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2023-09-19 14:46:03 UTC using RuboCop version 1.56.3.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 1
10+
# Configuration parameters: AllowComments, AllowEmptyLambdas.
11+
Lint/EmptyBlock:
12+
Exclude:
13+
- 'fastlane/lanes/release.rb'
14+
15+
# Offense count: 2
16+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
17+
Metrics/AbcSize:
18+
Max: 32
19+
20+
# Offense count: 1
21+
# Configuration parameters: AllowedMethods, AllowedPatterns.
22+
Metrics/CyclomaticComplexity:
23+
Max: 12
24+
25+
# Offense count: 1
26+
# Configuration parameters: AllowedMethods, AllowedPatterns.
27+
Metrics/PerceivedComplexity:
28+
Max: 13
29+
30+
# Offense count: 1
31+
Style/MultilineBlockChain:
32+
Exclude:
33+
- 'fastlane/lanes/release.rb'

Dangerfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# frozen_string_literal: true
2+
3+
def release_branch?
4+
danger.github.branch_for_base.start_with?('release/') || danger.github.branch_for_base.start_with?('hotfix/')
5+
end
6+
7+
def main_branch?
8+
danger.github.branch_for_base == 'trunk'
9+
end
10+
11+
def wip_feature?
12+
has_wip_label = github.pr_labels.any? { |label| label.include?('WIP') }
13+
has_wip_title = github.pr_title.include?('WIP')
14+
15+
has_wip_label || has_wip_title
16+
end
17+
18+
return if github.pr_labels.include?('Releases')
19+
20+
github.dismiss_out_of_range_messages
21+
22+
manifest_pr_checker.check_gemfile_lock_updated
23+
24+
labels_checker.check(
25+
required_labels: [//],
26+
required_labels_error: 'PR requires at least one label.'
27+
)
28+
29+
view_changes_need_screenshots.view_changes_need_screenshots
30+
31+
pr_size_checker.check_diff_size(
32+
file_selector: ->(path) { !path.include?('/src/test') },
33+
max_size: 300
34+
)
35+
36+
android_unit_test_checker.check_missing_tests
37+
38+
# skip check for draft PRs and for WIP features unless the PR is against the main branch or release branch
39+
milestone_checker.check_milestone_due_date(days_before_due: 4) unless github.pr_draft? || (wip_feature? && !(release_branch? || main_branch?))
40+
41+
rubocop.lint(inline_comment: true, fail_on_inline_comment: true, include_cop_names: true)

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
source 'https://rubygems.org'
44

5+
gem 'danger-dangermattic', git: 'https://github.com/Automattic/dangermattic'
56
gem 'fastlane', '~> 2'
67
gem 'nokogiri'
78

@@ -11,8 +12,7 @@ gem 'fastlane-plugin-wpmreleasetoolkit', '~> 9.2'
1112
# gem 'fastlane-plugin-wpmreleasetoolkit', path: '../../release-toolkit'
1213
# gem 'fastlane-plugin-wpmreleasetoolkit', git: 'https://github.com/wordpress-mobile/release-toolkit', branch: ''
1314

14-
1515
### Gems needed only for generating Promo Screenshots
1616
group :screenshots, optional: true do
17-
gem 'rmagick', '~> 4.1'
17+
gem 'rmagick', '~> 4.1'
1818
end

Gemfile.lock

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
GIT
2+
remote: https://github.com/Automattic/dangermattic
3+
revision: 078aa57c084790327da4cb401f18b350a4d1e329
4+
specs:
5+
danger-dangermattic (0.0.1)
6+
danger (~> 9.3)
7+
danger-junit (~> 1.0)
8+
danger-plugin-api (~> 1.0)
9+
danger-rubocop (~> 0.11)
10+
danger-swiftlint (~> 0.29)
11+
danger-xcode_summary (~> 1.0)
12+
rubocop (~> 1.56)
13+
114
GEM
215
remote: https://rubygems.org/
316
specs:
@@ -16,10 +29,11 @@ GEM
1629
addressable (2.8.5)
1730
public_suffix (>= 2.0.2, < 6.0)
1831
artifactory (3.0.15)
32+
ast (2.4.2)
1933
atomos (0.1.3)
2034
aws-eventstream (1.2.0)
21-
aws-partitions (1.843.0)
22-
aws-sdk-core (3.185.1)
35+
aws-partitions (1.844.0)
36+
aws-sdk-core (3.186.0)
2337
aws-eventstream (~> 1, >= 1.0.2)
2438
aws-partitions (~> 1, >= 1.651.0)
2539
aws-sigv4 (~> 1.5)
@@ -40,12 +54,46 @@ GEM
4054
sawyer (>= 0.6)
4155
chroma (0.2.0)
4256
claide (1.1.0)
57+
claide-plugins (0.9.2)
58+
cork
59+
nap
60+
open4 (~> 1.3)
4361
colored (1.2)
4462
colored2 (3.1.2)
4563
commander (4.6.0)
4664
highline (~> 2.0.0)
4765
concurrent-ruby (1.2.2)
4866
connection_pool (2.4.1)
67+
cork (0.3.0)
68+
colored2 (~> 3.1)
69+
danger (9.3.2)
70+
claide (~> 1.0)
71+
claide-plugins (>= 0.9.2)
72+
colored2 (~> 3.1)
73+
cork (~> 0.1)
74+
faraday (>= 0.9.0, < 3.0)
75+
faraday-http-cache (~> 2.0)
76+
git (~> 1.13)
77+
kramdown (~> 2.3)
78+
kramdown-parser-gfm (~> 1.0)
79+
no_proxy_fix
80+
octokit (~> 6.0)
81+
terminal-table (>= 1, < 4)
82+
danger-junit (1.0.2)
83+
danger (> 2.0)
84+
ox (~> 2.0)
85+
danger-plugin-api (1.0.0)
86+
danger (> 2.0)
87+
danger-rubocop (0.12.0)
88+
danger
89+
rubocop (~> 1.0)
90+
danger-swiftlint (0.33.0)
91+
danger
92+
rake (> 10)
93+
thor (~> 0.19)
94+
danger-xcode_summary (1.2.0)
95+
danger-plugin-api (~> 1.0)
96+
xcresult (~> 0.2)
4997
declarative (0.0.20)
5098
diffy (3.4.2)
5199
digest-crc (0.6.5)
@@ -75,6 +123,8 @@ GEM
75123
faraday-em_http (1.0.0)
76124
faraday-em_synchrony (1.0.0)
77125
faraday-excon (1.1.0)
126+
faraday-http-cache (2.5.0)
127+
faraday (>= 0.8)
78128
faraday-httpclient (1.0.1)
79129
faraday-multipart (1.0.4)
80130
multipart-post (~> 2)
@@ -194,6 +244,11 @@ GEM
194244
jmespath (1.6.2)
195245
json (2.6.3)
196246
jwt (2.7.1)
247+
kramdown (2.4.0)
248+
rexml
249+
kramdown-parser-gfm (1.1.0)
250+
kramdown (~> 2.0)
251+
language_server-protocol (3.17.0.3)
197252
mini_magick (4.12.0)
198253
mini_mime (1.1.5)
199254
mini_portile2 (2.8.5)
@@ -202,27 +257,36 @@ GEM
202257
multipart-post (2.3.0)
203258
mutex_m (0.1.2)
204259
nanaimo (0.3.0)
260+
nap (1.1.0)
205261
naturally (2.2.1)
262+
no_proxy_fix (0.1.2)
206263
nokogiri (1.15.4)
207264
mini_portile2 (~> 2.8.2)
208265
racc (~> 1.4)
209266
octokit (6.1.1)
210267
faraday (>= 1, < 3)
211268
sawyer (~> 0.9)
269+
open4 (1.3.4)
212270
options (2.3.2)
213271
optparse (0.1.1)
214272
os (1.1.4)
273+
ox (2.14.17)
215274
parallel (1.23.0)
275+
parser (3.2.2.4)
276+
ast (~> 2.4.1)
277+
racc
216278
plist (3.7.0)
217279
progress_bar (1.3.3)
218280
highline (>= 1.6, < 3)
219281
options (~> 2.3.0)
220282
public_suffix (5.0.3)
221-
racc (1.7.1)
283+
racc (1.7.2)
284+
rainbow (3.1.1)
222285
rake (13.1.0)
223286
rake-compiler (1.2.5)
224287
rake
225288
rchardet (1.8.0)
289+
regexp_parser (2.8.2)
226290
representable (3.2.0)
227291
declarative (< 0.1.0)
228292
trailblazer-option (>= 0.1.1, < 0.2.0)
@@ -231,6 +295,20 @@ GEM
231295
rexml (3.2.6)
232296
rmagick (4.3.0)
233297
rouge (2.0.7)
298+
rubocop (1.57.2)
299+
json (~> 2.3)
300+
language_server-protocol (>= 3.17.0)
301+
parallel (~> 1.10)
302+
parser (>= 3.2.2.4)
303+
rainbow (>= 2.2.2, < 4.0)
304+
regexp_parser (>= 1.8, < 3.0)
305+
rexml (>= 3.2.5, < 4.0)
306+
rubocop-ast (>= 1.28.1, < 2.0)
307+
ruby-progressbar (~> 1.7)
308+
unicode-display_width (>= 2.4.0, < 3.0)
309+
rubocop-ast (1.30.0)
310+
parser (>= 3.2.1.0)
311+
ruby-progressbar (1.13.0)
234312
ruby2_keywords (0.0.5)
235313
rubyzip (2.3.2)
236314
sawyer (0.9.2)
@@ -248,6 +326,7 @@ GEM
248326
terminal-notifier (2.0.0)
249327
terminal-table (3.0.2)
250328
unicode-display_width (>= 1.1.1, < 3)
329+
thor (0.20.3)
251330
trailblazer-option (0.1.2)
252331
tty-cursor (0.7.1)
253332
tty-screen (0.8.1)
@@ -273,11 +352,13 @@ GEM
273352
rouge (~> 2.0.7)
274353
xcpretty-travis-formatter (1.0.1)
275354
xcpretty (~> 0.2, >= 0.0.7)
355+
xcresult (0.2.1)
276356

277357
PLATFORMS
278358
ruby
279359

280360
DEPENDENCIES
361+
danger-dangermattic!
281362
fastlane (~> 2)
282363
fastlane-plugin-wpmreleasetoolkit (~> 9.2)
283364
nokogiri

RELEASE-NOTES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
23.7
44
-----
5+
* [***] [Jetpack-only] Added the All Domains screen enabling the users to manage their domains from within the app [https://github.com/wordpress-mobile/WordPress-Android/pull/19599]
6+
* [*] Block Editor: Fix error when pasting deeply nested structure content [https://github.com/WordPress/gutenberg/pull/55613]
7+
* [*] Block Editor: Fix crash related to accessing undefined value in `TextColorEdit` [https://github.com/WordPress/gutenberg/pull/55664]
58

69
23.6
710
-----

WordPress/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ android {
138138
buildConfigField "boolean", "ENABLE_BLAZE_FEATURE", "false"
139139
buildConfigField "boolean", "WP_INDIVIDUAL_PLUGIN_OVERLAY", "false"
140140
buildConfigField "boolean", "SITE_EDITOR_MVP", "false"
141-
buildConfigField "boolean", "JETPACK_SOCIAL", "false"
142141
buildConfigField "boolean", "CONTACT_SUPPORT_CHATBOT", "false"
143142
buildConfigField "boolean", "ENABLE_DOMAIN_MANAGEMENT_FEATURE", "false"
144143
buildConfigField "boolean", "PLANS_IN_SITE_CREATION", "false"

0 commit comments

Comments
 (0)