tefoji 3.4.1 → 3.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tefoji/version.rb +1 -1
  3. data/lib/tefoji.rb +11 -14
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d877edf49d4a6326964946cb9550504d33d0d27f2d647ee9d4cbd44989ef35df
4
- data.tar.gz: 24722e16086cd273ec562ac8f5628f98c09e73c2c51e6c31db2e01cbffcb4618
3
+ metadata.gz: b63db03509300205daa35c04b5329905a3d276a436d747ff884d310b8aac9d53
4
+ data.tar.gz: c050a2e8a39285ee728247955c133dab3b87f9526d23549b34e3d91a85d53877
5
5
  SHA512:
6
- metadata.gz: b095075f6a039349fa85a748f788091274fc2e0f751f78c399a6fc28d159f18e1827503889cd865a1dd47d871c6b8a30b8bb710c16d65f92605ff63c70ad8a60
7
- data.tar.gz: e9f3a20477f55ddfb188f501451b652bd6f6a2b9a116fdb529b37846adcea282e82132723b2f943e70ae171cd2f14b7fab0407414b6d2da100b5025bdacf78e3
6
+ metadata.gz: 32756204412d4c4b1ab1420fcc9b67b4caaeb1f34ea5c8ea62b5e02466592371d9e7f5e377417ca6dfce6c7c88766350955415a65d5d10a0995297e1d93c99fe
7
+ data.tar.gz: 17b5b4a29527381c795e3f220b6b4a446c82c92c9bd6ee0fb70cae8b0d928a42eadc047c7f5c97dd6ab135b7b626bbe0e6f319122a41b8bd5a832f2b10455f18
@@ -1,3 +1,3 @@
1
1
  module Tefoji
2
- VERSION = '3.4.1'
2
+ VERSION = '3.4.2'
3
3
  end
data/lib/tefoji.rb CHANGED
@@ -427,6 +427,17 @@ module Tefoji
427
427
  # Return the fully prepared Jira hash as well as the 'raw' variable-substituted one;
428
428
  # The latter will be needed when processing deferrals.
429
429
  def prepare_jira_ready_data(issue, issue_defaults)
430
+ # For multi-epic templates, skip this issue if it is not part of this epic
431
+ if issue.key?('epic_link') &&
432
+ issue['epic_link'] != @default_target_epic['short_name'].value
433
+ @logger.debug 'Issue %s "%s" does not have "%s" as epic_link, skipping' % [
434
+ issue['short_name'],
435
+ issue['epic_link'],
436
+ @default_target_epic['short_name'].value
437
+ ]
438
+ return nil
439
+ end
440
+
430
441
  raw_issue_data = variable_substitute(issue_defaults.merge(issue), except: %w[summary_format])
431
442
  error_name = raw_issue_data['short_name']
432
443
 
@@ -441,20 +452,6 @@ module Tefoji
441
452
  )
442
453
  end
443
454
 
444
- # For multi-epic templates, skip this issue if it is not part of this epic
445
- if raw_issue_data.key?('epic_link') &&
446
- raw_issue_data['epic_link'].value != @default_target_epic['short_name'].value
447
- @logger.debug 'Issue %s "%s" does not have "%s" as epic_link, skipping' % [
448
- raw_issue_data['short_name'].value,
449
- raw_issue_data['epic_link'].value,
450
- @default_target_epic['short_name'].value
451
- ]
452
- return nil
453
- end
454
-
455
- return nil if raw_issue_data.key?('epic_link') &&
456
- raw_issue_data['epic_link'].value != @default_target_epic['short_name'].value
457
-
458
455
  if conflicting_conditionals?(raw_issue_data)
459
456
  fatal "Issue \"#{error_name}\" has conflicting conditionals."
460
457
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tefoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.1
4
+ version: 3.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet By Perforce
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug
@@ -174,7 +174,7 @@ licenses:
174
174
  metadata:
175
175
  homepage_uri: https://github.com/puppetlabs/tefoji
176
176
  source_code_uri: https://github.com/puppetlabs/tefoji
177
- changelog_uri: https://github.com/puppetlabs/tefoji/CHANGELOG.md
177
+ changelog_uri: https://github.com/puppetlabs/tefoji/blob/main/CHANGELOG.md
178
178
  post_install_message:
179
179
  rdoc_options: []
180
180
  require_paths: