Skip to content

Commit 1fd7171

Browse files
Merge pull request #464 from wordpress-mobile/update/octokit
2 parents bedfdb1 + 82ef3de commit 1fd7171

26 files changed

+157
-141
lines changed

.rubocop.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ Style/AsciiComments:
4848
# which would be incorrect and not what we want
4949
Style/StringConcatenation:
5050
Enabled: false
51+
52+
# This rule was enforced after upgrading Rubocop from `1.22.1` to `1.50.2`. We are disabling this rule for the
53+
# time being so that we don't see any unexpected behavior when running Release Toolkit actions that could be
54+
# changed by this rule. See https://github.com/wordpress-mobile/release-toolkit/pull/464#pullrequestreview-1396569629
55+
# for more discussion
56+
Style/FetchEnvVar:
57+
Enabled: false
58+
59+
########## Gemspec Rules
60+
61+
# This was turned on by default after updating Rubocop to `1.50.2`. We want to disable this for now because
62+
# all the gem publishing is done within CI and doesn't allow for user input such as an MFA code. See
63+
# https://github.com/wordpress-mobile/release-toolkit/pull/464#pullrequestreview-1396569313 for more discussion
64+
Gemspec/RequireMFA:
65+
Enabled: false
5166

5267
########## Metrics / Max Lengths Rules
5368

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ _None_
2121
- Add "Mobile Secrets" to `configure_update` current branch message to clarify which repo it's referring to. [#455]
2222
- `buildkite_trigger_build` now prints the web URL of the newly scheduled build, to allow you to easily open it via cmd-click. [#460]
2323
- Add the branch information to the 'This is not a release branch' error that's thrown from complete code freeze lane. [#461]
24+
- Update `octokit` to `5.6.1` This is a major version bump from version `4.18`, but is not a breaking change for the Release Toolkit because it doesn't change any public APIs for clients. [#464]
25+
- Update `danger` to `9.3.0`. This is an internal-only change and is not a breaking change for clients. [#464]
2426
- Adds `ignore_pipeline_branch_filters=true` parameter to the API call triggering a Buildkite build [#468]
2527

2628
## 7.0.0

Dangerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ end
3232

3333
# Lint with Rubocop and report violations inline in GitHub
3434
github.dismiss_out_of_range_messages # This way, fixed violations should go
35-
renaming_map = (git.renamed_files || []).map { |e| [e[:before], e[:after]] }.to_h # when files are renamed, git.modified_files contains old name, not new one, so we need to do the convertion
35+
renaming_map = (git.renamed_files || []).to_h { |e| [e[:before], e[:after]] } # when files are renamed, git.modified_files contains old name, not new one, so we need to do the convertion
3636
rubocop.lint(
3737
files: git.added_files + (git.modified_files.map { |f| renaming_map[f] || f }) - git.deleted_files,
3838
inline_comment: true,

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source('https://rubygems.org')
22

33
gemspec
44

5-
gem 'danger', '~> 8.0'
5+
gem 'danger', '~> 9.3'
66
gem 'danger-rubocop', '~> 0.6'
77

88
gem 'codecov', require: false

0 commit comments

Comments
 (0)