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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 153df8ecf60a6641ad33e45fa3f3cb889a0ab59cdb7b52ce894b86df0713b645
4
- data.tar.gz: d3223b8fd86b82f6288c73d1facce11d44d402dfe7cb17c2ec0e7dae26b5c9d4
3
+ metadata.gz: 7c85ed53bac61c994b0e4e1ee83781a57ca26046128412199c0824fd93a95774
4
+ data.tar.gz: 3a61a6eccc60d1b40a3508b28d10cc888dde680b35e59f074f221d7f53d31aae
5
5
  SHA512:
6
- metadata.gz: 1f6847e707ff46d4e4306bae339f01985e4b20a1575319ffd7a5a8f04ef3af145c14eb552db74191f48acc2e602c9634232ec77f276bc3a6c06dbb7176cef2d4
7
- data.tar.gz: 977946f4b403c6319bb914d39aac9abf73bd66438ebc6a96c23b579148fc87bb547073c24f26ffc44266be460e4c265d18d2ce066a37111d328b7dde337c9de0
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 + 1)..version_int).each do |version_to_deploy|
436
- version_name = "#{repository.name} 0.#{version_to_deploy}.0"
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
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundskeeper
4
- VERSION = "0.33.0"
4
+ VERSION = "0.34.0"
5
5
  end
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.33.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-08-12 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jira-ruby