groundskeeper-bitcore 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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/groundskeeper/commands.rb +7 -2
- data/lib/groundskeeper/jira.rb +3 -3
- 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: b2138f954e4b98d11a821a34124aba35dc5158adc9278ab6a68f91763d316964
|
|
4
|
+
data.tar.gz: '086333ae3d1a35fa6104864364395738363103fd2c38a0a793c9e79f8f058aea'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83748b68893ebf1d81a949979b3eeec153b0803bc0ecc11a53f6fa2e667dfbeb635105acab19f30b2b6b8036b9506aae901b3901ac90940c557596b38a38d0c5
|
|
7
|
+
data.tar.gz: 6dada363400e4edac9751648661ade96793f6603df949a9948e09e6c8912080be3caea855649da26e0bd5f93c0dd106de957ccd7ed14e3484a9fe18677c6c053
|
data/CHANGELOG.md
CHANGED
|
@@ -365,17 +365,22 @@ module Groundskeeper
|
|
|
365
365
|
end
|
|
366
366
|
# :nocov:
|
|
367
367
|
|
|
368
|
+
# rubocop:disable Metrics/MethodLength
|
|
368
369
|
def transition_remote_issues(version)
|
|
369
370
|
version_name = "#{repository.name} #{version}"
|
|
370
371
|
deployed_issues = jira.fetch_issues_by_fix_version(version_name)
|
|
371
|
-
action =
|
|
372
|
-
|
|
372
|
+
action = if self.class.stage == PRODUCTION
|
|
373
|
+
Jira::DEPLOY_TO_PRODUCTION
|
|
374
|
+
else
|
|
375
|
+
Jira::DEPLOY_TO_STAGING
|
|
376
|
+
end
|
|
373
377
|
announce_step(
|
|
374
378
|
"Transitioning deployed issues in Jira: " \
|
|
375
379
|
"#{action} #{deployed_issues.join(', ')}"
|
|
376
380
|
)
|
|
377
381
|
jira.transition_remote_issues(action, deployed_issues)
|
|
378
382
|
end
|
|
383
|
+
# rubocop:enable Metrics/MethodLength
|
|
379
384
|
|
|
380
385
|
def announce_step(message)
|
|
381
386
|
console.say(">>>", :magenta)
|
data/lib/groundskeeper/jira.rb
CHANGED
|
@@ -11,10 +11,10 @@ module Groundskeeper
|
|
|
11
11
|
JIRA_PASSWORD_KEY = "JIRA_PASSWORD"
|
|
12
12
|
JIRA_SITE_KEY = "JIRA_SITE"
|
|
13
13
|
DEPLOY_TO_STAGING = "Deploy to Staging"
|
|
14
|
-
|
|
14
|
+
DEPLOY_TO_PRODUCTION = "Deploy to Production"
|
|
15
15
|
TRANSITION_IDS = {
|
|
16
|
-
DEPLOY_TO_STAGING =>
|
|
17
|
-
|
|
16
|
+
DEPLOY_TO_STAGING => 201,
|
|
17
|
+
DEPLOY_TO_PRODUCTION => 221
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
20
|
attr_reader :client, :prefix
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groundskeeper-bitcore
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BIT Core
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain:
|
|
11
11
|
- certs/ericcf.pem
|
|
12
|
-
date: 2019-05-
|
|
12
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: jira-ruby
|