groundskeeper-bitcore 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groundskeeper/commands.rb +4 -3
- data/lib/groundskeeper/jira.rb +5 -5
- data/lib/groundskeeper/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: 7c85ed53bac61c994b0e4e1ee83781a57ca26046128412199c0824fd93a95774
|
4
|
+
data.tar.gz: 3a61a6eccc60d1b40a3508b28d10cc888dde680b35e59f074f221d7f53d31aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d980eba26b5dc7fd0376aa291074de4196ae75576a3460019774d6711672797541abf1d0e0943fc869bc80720c7561bbdb2c8c6ae4baac83a36d76344500b9f
|
7
|
+
data.tar.gz: df07fc3671092395b4797d9a6cd3d4facaa438108841b162e773f693a01dea69bb324c183cd0ddb03d10c80ed0ae24e16ab4f7bb637babe325ac2c6eb26ae08a
|
@@ -432,10 +432,11 @@ module Groundskeeper
|
|
432
432
|
version_int = version.minor.to_i
|
433
433
|
current_version_int = current_version.minor.to_i
|
434
434
|
deployed_issues = []
|
435
|
-
((current_version_int
|
436
|
-
version_name = "
|
437
|
-
deployed_issues.append(jira.fetch_issues_by_fix_version(version_name))
|
435
|
+
((current_version_int)..version_int).each do |version_to_deploy|
|
436
|
+
version_name = "0.#{version_to_deploy}.0"
|
437
|
+
deployed_issues.append(jira.fetch_issues_by_fix_version(project: project, version: version_name))
|
438
438
|
end
|
439
|
+
deployed_issues.uniq!
|
439
440
|
|
440
441
|
action = if self.class.stage == PRODUCTION
|
441
442
|
Jira::DEPLOY_TO_PRODUCTION
|
data/lib/groundskeeper/jira.rb
CHANGED
@@ -68,9 +68,9 @@ module Groundskeeper
|
|
68
68
|
# :nocov:
|
69
69
|
|
70
70
|
# :nocov:
|
71
|
-
def fetch_issues_by_fix_version(version:)
|
71
|
+
def fetch_issues_by_fix_version(project:, version:)
|
72
72
|
search_path = "/rest/api/2/search"
|
73
|
-
query = "fixVersion=\"#{version}\""
|
73
|
+
query = "fixVersion=\"#{project.repo_name} #{version}\""
|
74
74
|
request_url = "#{search_path}?fields=key&jql=#{CGI.escape(query)}"
|
75
75
|
response = client.get(request_url).body
|
76
76
|
|
@@ -141,15 +141,15 @@ module Groundskeeper
|
|
141
141
|
def transition_remote_issues(transition_type, issue_ids)
|
142
142
|
issue_ids.each do |issue_id|
|
143
143
|
client.transition_issue(
|
144
|
-
issue_id: issue_id,
|
144
|
+
issue_id: issue_id[0],
|
145
145
|
transition_id: TRANSITION_IDS[transition_type]
|
146
146
|
)
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
150
|
# :nocov:
|
151
|
-
def fetch_issues_by_fix_version(version)
|
152
|
-
client.fetch_issues_by_fix_version(version: version)
|
151
|
+
def fetch_issues_by_fix_version(project:, version:)
|
152
|
+
client.fetch_issues_by_fix_version(project: project, version: version)
|
153
153
|
end
|
154
154
|
# :nocov:
|
155
155
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groundskeeper-bitcore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RADD
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jira-ruby
|