fastlane-plugin-wpmreleasetoolkit 14.0.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29636d76913839dee147b2f5ee9e346c561539c4fac3d9a329fa66529b9cf577
4
- data.tar.gz: 54ac52ec5e5f57b066bc002763822907cb90b7343b4c6238bfadead2ff1ef4c4
3
+ metadata.gz: 241d117047e4a00bf3d1b41521943b6e5d5828b641c55aeac8c904dd3ca779a7
4
+ data.tar.gz: bce3b3f69e03d729f06bfd240d260047d3aab8efbf0b07960a864e6621c0486f
5
5
  SHA512:
6
- metadata.gz: 505438695c2061a309f377d1ede630fac96f42adfd76a15b1ce0363066d1da0bba6b35fbbbc9883cbe55a2c3cf3c438f2ba0eec24d4d2c4c7b88d7f5c7a2ede6
7
- data.tar.gz: ad8d25c6fc51f764203d13e5d340f3606946371a5a9ecfa7b068689b4ab2c9e7b2ad161d0edafbb650067cfdfbf125eb38c8af88b4ea4524aa872375a1d7895f
6
+ metadata.gz: 9595b10066856a9eb8610b8bd5847cc6a3a2bb55ee03745ae1856d453b8dce54428f72b45083f6c8e8bc48ba5030439ea3d16e4bf57b9b36e789ec70677e1b75
7
+ data.tar.gz: 4e0694d41145a455e58008245b493b4e760de5d35ba39670386179d9ec4963622e20b33998898a59ffcd1d4c69e18f7a2ffdcb3ca0e47cb9545ee91b292500a1
@@ -28,6 +28,7 @@ module Fastlane
28
28
  url = github_helper.create_release(
29
29
  repository: repository,
30
30
  version: version,
31
+ name: params[:name],
31
32
  target: params[:target],
32
33
  description: release_notes,
33
34
  assets: assets,
@@ -64,9 +65,13 @@ module Fastlane
64
65
  type: String),
65
66
  FastlaneCore::ConfigItem.new(key: :version,
66
67
  env_name: 'GHHELPER_CREATE_RELEASE_VERSION',
67
- description: 'The version of the release',
68
+ description: 'The version of the release. Used as the git tag name',
68
69
  optional: false,
69
70
  type: String),
71
+ FastlaneCore::ConfigItem.new(key: :name,
72
+ description: 'The display name (title) of the GitHub release. Defaults to the version if not provided',
73
+ optional: true,
74
+ type: String),
70
75
  FastlaneCore::ConfigItem.new(key: :target,
71
76
  env_name: 'GHHELPER_TARGET_COMMITISH',
72
77
  description: 'The branch name or commit SHA the new tag should point to - if that tag does not exist yet when publishing the release. If omitted, will default to the current HEAD commit at the time of this call',
@@ -8,6 +8,7 @@ module Fastlane
8
8
  class FindPreviousTagAction < Action
9
9
  def self.run(params)
10
10
  tag_pattern = params[:pattern]
11
+ exclude_patterns = params[:exclude] || []
11
12
 
12
13
  # Make sure we have all the latest tags fetched locally
13
14
  Actions.sh('git', 'fetch', '--tags', '--force') { nil }
@@ -17,6 +18,7 @@ module Fastlane
17
18
  # Finally find the previous tag matching the provided pattern, and that is not the current commit
18
19
  git_cmd = %w[git describe --tags --abbrev=0]
19
20
  git_cmd += ['--match', tag_pattern] unless tag_pattern.nil?
21
+ exclude_patterns.each { |p| git_cmd += ['--exclude', p] }
20
22
  git_cmd += ['--exclude', current_commit_tag] unless current_commit_tag.empty?
21
23
  Actions.sh(*git_cmd) { |exit_status, stdout, _| exit_status.success? ? stdout.chomp : nil }
22
24
  end
@@ -38,7 +40,9 @@ module Fastlane
38
40
  Uses `git describe --tags --abbrev=0 --match … --exclude …` to find the previous git tag
39
41
  reachable from the current commit and that matches a specific naming pattern
40
42
 
41
- e.g. `find_previous_tag(pattern: '12.3.*.*')`, `find_previous_tag(pattern: '12.3-rc-*')`
43
+ e.g. `find_previous_tag(pattern: '12.3.*.*')`, `find_previous_tag(pattern: '12.3-rc-*')`,
44
+ `find_previous_tag(pattern: 'v*', exclude: ['*beta*'])`,
45
+ `find_previous_tag(pattern: 'v*', exclude: ['*alpha*', '*beta*'])`
42
46
  DETAILS
43
47
  end
44
48
 
@@ -49,6 +53,11 @@ module Fastlane
49
53
  optional: true,
50
54
  default_value: nil,
51
55
  type: String),
56
+ FastlaneCore::ConfigItem.new(key: :exclude,
57
+ description: 'An array of _fnmatch_-style patterns of tags to exclude from the search (maps to `git describe --exclude`)',
58
+ optional: true,
59
+ default_value: nil,
60
+ type: Array),
52
61
  ]
53
62
  end
54
63
 
@@ -166,7 +166,8 @@ module Fastlane
166
166
  # Creates a Release on GitHub as a Draft
167
167
  #
168
168
  # @param [String] repository The repository to create the GitHub release on. Typically a repo slug (<org>/<repo>).
169
- # @param [String] version The version for which to create this release. Will be used both as the name of the tag and the name of the release.
169
+ # @param [String] version The version for which to create this release. Will be used as the git tag name.
170
+ # @param [String?] name The display name (title) of the GitHub release. Defaults to the version if not provided.
170
171
  # @param [String?] target The commit SHA or branch name that this release will point to when it's published and creates the tag.
171
172
  # If nil (the default), will use the repo's current HEAD commit at the time this method is called.
172
173
  # Unused if the tag already exists.
@@ -175,11 +176,11 @@ module Fastlane
175
176
  # @param [TrueClass|FalseClass] prerelease Indicates if this should be created as a pre-release (i.e. for alpha/beta)
176
177
  # @param [TrueClass|FalseClass] is_draft Indicates if this should be created as a draft release
177
178
  #
178
- def create_release(repository:, version:, description:, assets:, prerelease:, is_draft:, target: nil)
179
+ def create_release(repository:, version:, description:, assets:, prerelease:, is_draft:, target: nil, name: nil)
179
180
  release = client.create_release(
180
181
  repository,
181
182
  version, # tag name
182
- name: version, # release name
183
+ name: name || version, # release name
183
184
  target_commitish: target || Git.open(Dir.pwd).log.first.sha,
184
185
  prerelease: prerelease,
185
186
  draft: is_draft,
@@ -3,6 +3,6 @@
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
5
  NAME = 'fastlane-plugin-wpmreleasetoolkit'
6
- VERSION = '14.0.0'
6
+ VERSION = '14.2.0'
7
7
  end
8
8
  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: 14.0.0
4
+ version: 14.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: 2026-01-21 00:00:00.000000000 Z
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 6.1.7.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 6.1.7.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: buildkit
29
35
  requirement: !ruby/object:Gem::Requirement