fastlane-plugin-wpmreleasetoolkit 6.1.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d68a9310585fca22170859bab407386c1bf42287036832a08bdd0e55c3027522
|
4
|
+
data.tar.gz: 297c23c5ffb14516663422be411ad163f16ce6620e88c5216bf76e8649350bb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca46edc69be727e82bd611707d1ed2f49efdeee160709712909ea48d7da03b6518bdff0bbbd8fd8bd3e5a75c1f1b770e353a71d0fadb654f66941b33a0262aec
|
7
|
+
data.tar.gz: c043ac3b847ef8d5bc37a94803227dc8f39579ac3f7ec6957377969f5143e2a80c4e7eef8b04debba54a70439ca48d0f7cbaabcc598f3f9dc0b58bea896e35dc
|
@@ -14,6 +14,7 @@ module Fastlane
|
|
14
14
|
# Replace full URLS to PRs/Issues with shorthand, because GitHub does not render them properly otherwise.
|
15
15
|
release_notes.gsub!(%r{https://github.com/([^/]*/[^/]*)/(pulls?|issues?)/([0-9]*)}, '\1#\3')
|
16
16
|
prerelease = params[:prerelease]
|
17
|
+
is_draft = params[:is_draft]
|
17
18
|
|
18
19
|
UI.message("Creating draft release #{version} in #{repository}.")
|
19
20
|
# Verify assets
|
@@ -28,7 +29,8 @@ module Fastlane
|
|
28
29
|
target: params[:target],
|
29
30
|
description: release_notes,
|
30
31
|
assets: assets,
|
31
|
-
prerelease: prerelease
|
32
|
+
prerelease: prerelease,
|
33
|
+
is_draft: is_draft
|
32
34
|
)
|
33
35
|
UI.message('Done')
|
34
36
|
end
|
@@ -83,6 +85,12 @@ module Fastlane
|
|
83
85
|
optional: true,
|
84
86
|
default_value: false,
|
85
87
|
is_string: false),
|
88
|
+
FastlaneCore::ConfigItem.new(key: :is_draft,
|
89
|
+
env_name: 'GHHELPER_CREATE_RELEASE_IS_DRAFT',
|
90
|
+
description: 'True to create the GitHub release as a draft (instead of publishing it immediately)',
|
91
|
+
optional: true,
|
92
|
+
default_value: true,
|
93
|
+
type: Boolean),
|
86
94
|
Fastlane::Helper::GithubHelper.github_token_config_item,
|
87
95
|
]
|
88
96
|
end
|
@@ -119,15 +119,16 @@ module Fastlane
|
|
119
119
|
# @param [String] description The text to use as the release's body / description (typically the release notes)
|
120
120
|
# @param [Array<String>] assets List of file paths to attach as assets to the release
|
121
121
|
# @param [TrueClass|FalseClass] prerelease Indicates if this should be created as a pre-release (i.e. for alpha/beta)
|
122
|
+
# @param [TrueClass|FalseClass] is_draft Indicates if this should be created as a draft release
|
122
123
|
#
|
123
|
-
def create_release(repository:, version:, target: nil, description:, assets:, prerelease:)
|
124
|
+
def create_release(repository:, version:, target: nil, description:, assets:, prerelease:, is_draft:)
|
124
125
|
release = client.create_release(
|
125
126
|
repository,
|
126
127
|
version, # tag name
|
127
128
|
name: version, # release name
|
128
129
|
target_commitish: target || Git.open(Dir.pwd).log.first.sha,
|
129
|
-
draft: true,
|
130
130
|
prerelease: prerelease,
|
131
|
+
draft: is_draft,
|
131
132
|
body: description
|
132
133
|
)
|
133
134
|
assets.each do |file_path|
|
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: 6.
|
4
|
+
version: 6.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-12-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|