fastlane-plugin-wpmreleasetoolkit 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_trigger_build_action.rb +14 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_localize_helper.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23a4f49849939810617ab3f6df7fe58ca25bd81fc01001c5566f51571037fb6
|
4
|
+
data.tar.gz: 79007cfcf3eaa83fd48b63b3c266bfa3e966920974bb05475bc3e5944f7a4d6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 356d445b958e3b9af8331a03c915b4c414489ffa7c8cb26a3de46ce275b508b2c234d4c66e9003f3835b69fcfcbc6bfec9b50f2ed4525fb022325c42b935306c
|
7
|
+
data.tar.gz: 57643bb076c443d7d60b5afe507698b40a39daeb8fe3ad39c58c85f223090714f6666ca39d8eb66c828935ebe71c4b3af239854cb4ba58744cbffb37c998a8c5
|
data/README.md
CHANGED
@@ -20,6 +20,21 @@ Read our [Contributing Guide](CONTRIBUTING.md) to learn about reporting issues,
|
|
20
20
|
|
21
21
|
This guide also includes some tips about configuring your environment and IDE (e.g. VSCode) and how to run tests and documentation.
|
22
22
|
|
23
|
+
## Doing a new Release
|
24
|
+
|
25
|
+
When you need to do a new release of the `release-toolkit`, simply run `rake new_release` and follow the instructions.
|
26
|
+
|
27
|
+
> This task will:
|
28
|
+
> - Show you the CHANGELOG/release notes it's about to use for that version
|
29
|
+
> - Deduce which version number to use according to [SemVer](https://semver.org/) rules, and ask you to confirm that version number
|
30
|
+
> - Create a `release/<x.y>` branch, update the version number in all the right places, and create a PR for those changes
|
31
|
+
|
32
|
+
Submit the PR, adding the `Releases` label to it and adding the `owl-team` as reviewers.
|
33
|
+
|
34
|
+
Once that PR is approved and merged, create a new GitHub Release, copy/pasting the CHANGELOG entries for that GH release's description.
|
35
|
+
|
36
|
+
> Publishing the GitHub Release will create the associated tag as well, which will trigger the CI job that will ultimately `gem push` the gem on RubyGems.
|
37
|
+
|
23
38
|
## Security
|
24
39
|
|
25
40
|
If you happen to find a security vulnerability, we would appreciate you letting us know at https://hackerone.com/automattic and allowing us to respond before disclosing the issue publicly.
|
@@ -9,16 +9,18 @@ module Fastlane
|
|
9
9
|
pipeline_name = {
|
10
10
|
PIPELINE: params[:pipeline_file]
|
11
11
|
}
|
12
|
+
options = {
|
13
|
+
branch: params[:branch],
|
14
|
+
commit: params[:commit],
|
15
|
+
env: params[:environment].merge(pipeline_name),
|
16
|
+
message: params[:message]
|
17
|
+
}.compact # remove entries with `nil` values from the Hash, if any
|
12
18
|
|
13
19
|
client = Buildkit.new(token: params[:buildkite_token])
|
14
20
|
response = client.create_build(
|
15
21
|
params[:buildkite_organization],
|
16
22
|
params[:buildkite_pipeline],
|
17
|
-
|
18
|
-
branch: params[:branch],
|
19
|
-
commit: params[:commit],
|
20
|
-
env: params[:environment].merge(pipeline_name)
|
21
|
-
}
|
23
|
+
options
|
22
24
|
)
|
23
25
|
|
24
26
|
response.state == 'scheduled' ? UI.message('Done!') : UI.crash!("Failed to start job\nError: [#{response}]")
|
@@ -64,6 +66,13 @@ module Fastlane
|
|
64
66
|
type: String,
|
65
67
|
default_value: 'HEAD'
|
66
68
|
),
|
69
|
+
FastlaneCore::ConfigItem.new(
|
70
|
+
key: :message,
|
71
|
+
description: 'A custom message to show for the build in Buildkite\'s UI',
|
72
|
+
type: String,
|
73
|
+
optional: true,
|
74
|
+
default_value: nil
|
75
|
+
),
|
67
76
|
FastlaneCore::ConfigItem.new(
|
68
77
|
key: :pipeline_file,
|
69
78
|
description: 'The name of the pipeline file in the project',
|
@@ -212,8 +212,8 @@ module Fastlane
|
|
212
212
|
def self.create_available_languages_file(res_dir:, locale_codes:)
|
213
213
|
doc = Nokogiri::XML::Builder.new(encoding: 'UTF-8') do |xml|
|
214
214
|
xml.comment('Warning: Auto-generated file, do not edit.')
|
215
|
-
xml.resources do
|
216
|
-
xml.send(:'string-array', name: 'available_languages', translatable: 'false') do
|
215
|
+
xml.resources('xmlns:tools': 'http://schemas.android.com/tools') do
|
216
|
+
xml.send(:'string-array', name: 'available_languages', translatable: 'false', 'tools:ignore': 'InconsistentArrays') do
|
217
217
|
locale_codes.each { |code| xml.item(code.gsub('-r', '_')) }
|
218
218
|
end
|
219
219
|
end
|
@@ -70,7 +70,7 @@ module Fastlane
|
|
70
70
|
else
|
71
71
|
begin
|
72
72
|
last_vcomps = last_stone[:title].split[0].split('.')
|
73
|
-
last_stone = mile if mile_vcomps[0] > last_vcomps[0] || mile_vcomps[1] > last_vcomps[1]
|
73
|
+
last_stone = mile if Integer(mile_vcomps[0]) > Integer(last_vcomps[0]) || Integer(mile_vcomps[1]) > Integer(last_vcomps[1])
|
74
74
|
rescue StandardError
|
75
75
|
puts 'Found invalid milestone'
|
76
76
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-wpmreleasetoolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Automattic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|