capistrano-deploybot 1.0.0 → 1.1.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: 25431135f57c0aee8ff3ee5ef54b004c52091854e085200b7bf89ae48e06c6d0
4
- data.tar.gz: 2e959245f4d1c7efeff6cd7506818c0ad3b98c5238cbf7c3dca78b6894fa0424
3
+ metadata.gz: e7681a63cd918d0df99e11d05c571104614061fe9bd9a24d77909b0ff8c76891
4
+ data.tar.gz: 64367a40e53aedbcaf9a51708b2ea52925460e2744a4757608ba5bd3451b9861
5
5
  SHA512:
6
- metadata.gz: ce5932e0b2928274558fa9cb2889d5767b4c7af8bd8bb36d9ca014e91c81aeef7b1fa38b4b41c62df7cb041d66a56649cf3b53991ddaef32b967565b093bfb3f
7
- data.tar.gz: 2d6544c283bf76a93b09d421d19e22bb67f9ed37b2d98319d5d52d193b8f889c1615fa8b3e168944f2588c46422458d2972df9afa5a098bfb8f65fc67744ef71
6
+ metadata.gz: 688b536e9c4b7fa738a8fa35bf8798b2727386138b40ea88f79db9a56d4ea87107779dfcfb529ca7108f62bf9e1a0451f66e64d0d17caa856d33c7606a3cd092
7
+ data.tar.gz: 9eb32b67d54606a4f5faaf71020f46538ba6d25313a37847eaafac9d797c9b377656faa8a78915deea5433a7501698b18086820d510e548b7cfa037f16279558
@@ -60,15 +60,21 @@ module CapistranoDeploybot
60
60
  jira_issues = extract_jira_ids_from_commits(current_revision, previous_revision)
61
61
  return if jira_issues.empty?
62
62
 
63
+ release_tag = ENV['CI_COMMIT_TAG']
64
+
63
65
  payload = {
64
- issues: jira_issues
66
+ issues: jira_issues,
67
+ data: { releaseVersion: release_tag }
65
68
  }
66
69
 
67
70
  webhooks.each do |webhook|
68
71
  post_to_webhook(webhook, payload)
69
72
  end
73
+
74
+ message = "[deploybot] Notified JIRA webhooks with tickets: #{jira_issues.join(', ')}"
75
+ message << " and release: #{release_tag}" if release_tag
70
76
 
71
- @env.info("[deploybot] Notified JIRA webhooks with tickets: #{jira_issues.join(', ')}")
77
+ @env.info(message)
72
78
  end
73
79
 
74
80
  def deploy_target(rails_env, application_name)
@@ -1,3 +1,3 @@
1
1
  module CapistranoDeploybot
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploybot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Baćkowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-29 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano