fastlane-plugin-jira_release_notes 0.5.0 → 0.6.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df95b3762886fed53599c9c7e1496fbe859fd5516af8ebb60d0ef730b465660a
|
|
4
|
+
data.tar.gz: c880b43871c63e4e64c59bdbae968aa08a86c9434790dddffa49de0d85407e5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4d7d44a35cb79ca4b313a542f5cf99c840f7a544a604d5d1c2626e0074e454651825d2c756837eefda143bb0c0b2e4416e2b05607e0f055646a2283156ee456
|
|
7
|
+
data.tar.gz: 7f15cfce25c0586ccdbbbf34474566def59edb627c4a3aa6be2fec71ef8a51062c94cbe86fc5a95f60bdee2949a4a4955c0bc39dcdc37903b94c77fc03c462f1
|
data/README.md
CHANGED
|
@@ -50,6 +50,7 @@ password | Password for Jira or api token | FL_JIRA_PASSWORD |
|
|
|
50
50
|
project | Jira project name | FL_JIRA_PROJECT |
|
|
51
51
|
version | Jira project version | FL_JIRA_PROJECT_VERSION |
|
|
52
52
|
status | Jira issue status | FL_JIRA_STATUS |
|
|
53
|
+
components | An array of Jira issue components | FL_JIRA_COMPONENTS |
|
|
53
54
|
format | Format text. Plain, html or none | FL_JIRA_RELEASE_NOTES_FORMAT | plain
|
|
54
55
|
max_results | Maximum number of issues | FL_JIRA_RELEASE_NOTES_MAX_RESULTS | 50
|
|
55
56
|
|
|
@@ -16,6 +16,7 @@ module Fastlane
|
|
|
16
16
|
version = params[:version]
|
|
17
17
|
project = params[:project]
|
|
18
18
|
status = params[:status]
|
|
19
|
+
components = params[:components]
|
|
19
20
|
max_results = params[:max_results].to_i
|
|
20
21
|
issues = []
|
|
21
22
|
|
|
@@ -33,6 +34,10 @@ module Fastlane
|
|
|
33
34
|
unless status.nil? or status.empty?
|
|
34
35
|
jql += " AND status = '#{status}'"
|
|
35
36
|
end
|
|
37
|
+
unless components.nil? or components.empty?
|
|
38
|
+
jql += " AND component in (#{components.map{|s| "\"#{s}\""}.join(", ")})"
|
|
39
|
+
end
|
|
40
|
+
UI.message("jql '#{jql}'")
|
|
36
41
|
issues = client.Issue.jql(jql,max_results: max_results)
|
|
37
42
|
|
|
38
43
|
rescue JIRA::HTTPError => e
|
|
@@ -41,7 +46,7 @@ module Fastlane
|
|
|
41
46
|
UI.user_error!("#{e} #{fields.join(', ')}")
|
|
42
47
|
end
|
|
43
48
|
|
|
44
|
-
UI.success("📝 #{issues.count} issues from JIRA project '#{project}', version '#{version}', status '#{status}'")
|
|
49
|
+
UI.success("📝 #{issues.count} issues from JIRA project '#{project}', version '#{version}', status '#{status}', components '#{components}'")
|
|
45
50
|
|
|
46
51
|
case params[:format]
|
|
47
52
|
when "plain"
|
|
@@ -106,6 +111,12 @@ module Fastlane
|
|
|
106
111
|
description: "Jira issue status",
|
|
107
112
|
sensitive: true,
|
|
108
113
|
default_value: ""),
|
|
114
|
+
FastlaneCore::ConfigItem.new(key: :components,
|
|
115
|
+
env_name: "FL_JIRA_COMPONENTS",
|
|
116
|
+
description: "Jira issue components",
|
|
117
|
+
type: Array,
|
|
118
|
+
sensitive: true,
|
|
119
|
+
default_value: ""),
|
|
109
120
|
FastlaneCore::ConfigItem.new(key: :version,
|
|
110
121
|
env_name: "FL_JIRA_PROJECT_VERSION",
|
|
111
122
|
description: "Jira project version",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-jira_release_notes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Ignition
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jira-ruby
|