fastlane-plugin-jira_release_notes 0.5.0 → 0.6.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: 057f60fdfa7c7c228c21a67602ab025424ee2236df80b7b959816648cbf80ede
4
- data.tar.gz: 638ebcbde574e68bcff1a31a55a261f505daaf010ece92451b800395b137e994
3
+ metadata.gz: df95b3762886fed53599c9c7e1496fbe859fd5516af8ebb60d0ef730b465660a
4
+ data.tar.gz: c880b43871c63e4e64c59bdbae968aa08a86c9434790dddffa49de0d85407e5e
5
5
  SHA512:
6
- metadata.gz: 0a09dcd9b80ca06669459fafe39638806ada14bf5c5637c01fd176b6508f6a8ab8c7e8a8138e6f84e6bae088f1b6af7e01b39fc5a0bdd371558aaf3c532bf7bf
7
- data.tar.gz: 525490fa8e9da37c50f778c52f1bcecdd79e7d54f6180180e0061efa9686e5d2b796b2b1cd446dc891e4c2b8c70c46368824ebd55045353e091e2ac3ce8f0115
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",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module JiraReleaseNotes
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
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.5.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: 2021-08-13 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jira-ruby