tefoji 3.4.0 → 3.4.2
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/lib/tefoji/version.rb +1 -1
- data/lib/tefoji.rb +18 -15
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b63db03509300205daa35c04b5329905a3d276a436d747ff884d310b8aac9d53
|
4
|
+
data.tar.gz: c050a2e8a39285ee728247955c133dab3b87f9526d23549b34e3d91a85d53877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32756204412d4c4b1ab1420fcc9b67b4caaeb1f34ea5c8ea62b5e02466592371d9e7f5e377417ca6dfce6c7c88766350955415a65d5d10a0995297e1d93c99fe
|
7
|
+
data.tar.gz: 17b5b4a29527381c795e3f220b6b4a446c82c92c9bd6ee0fb70cae8b0d928a42eadc047c7f5c97dd6ab135b7b626bbe0e6f319122a41b8bd5a832f2b10455f18
|
data/lib/tefoji/version.rb
CHANGED
data/lib/tefoji.rb
CHANGED
@@ -323,6 +323,12 @@ module Tefoji
|
|
323
323
|
'jira' => epic_issue,
|
324
324
|
'raw' => epic
|
325
325
|
}
|
326
|
+
|
327
|
+
if epic.key?('status')
|
328
|
+
status = epic['status'].value
|
329
|
+
@transitions_table[epic_issue['key']] = @jira_api.get_transition_id(epic_issue['key'], status)
|
330
|
+
end
|
331
|
+
|
326
332
|
epic_issue
|
327
333
|
end
|
328
334
|
end
|
@@ -421,6 +427,17 @@ module Tefoji
|
|
421
427
|
# Return the fully prepared Jira hash as well as the 'raw' variable-substituted one;
|
422
428
|
# The latter will be needed when processing deferrals.
|
423
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
|
+
|
424
441
|
raw_issue_data = variable_substitute(issue_defaults.merge(issue), except: %w[summary_format])
|
425
442
|
error_name = raw_issue_data['short_name']
|
426
443
|
|
@@ -435,20 +452,6 @@ module Tefoji
|
|
435
452
|
)
|
436
453
|
end
|
437
454
|
|
438
|
-
# For multi-epic templates, skip this issue if it is not part of this epic
|
439
|
-
if raw_issue_data.key?('epic_link') &&
|
440
|
-
raw_issue_data['epic_link'].value != @default_target_epic['short_name'].value
|
441
|
-
@logger.debug 'Issue %s "%s" does not have "%s" as epic_link, skipping' % [
|
442
|
-
raw_issue_data['short_name'].value,
|
443
|
-
raw_issue_data['epic_link'].value,
|
444
|
-
@default_target_epic['short_name'].value
|
445
|
-
]
|
446
|
-
return nil
|
447
|
-
end
|
448
|
-
|
449
|
-
return nil if raw_issue_data.key?('epic_link') &&
|
450
|
-
raw_issue_data['epic_link'].value != @default_target_epic['short_name'].value
|
451
|
-
|
452
455
|
if conflicting_conditionals?(raw_issue_data)
|
453
456
|
fatal "Issue \"#{error_name}\" has conflicting conditionals."
|
454
457
|
end
|
@@ -908,7 +911,7 @@ module Tefoji
|
|
908
911
|
end
|
909
912
|
end
|
910
913
|
unless invalid_users_to_issue_defaults.empty?
|
911
|
-
invalid_users_to_issue_defaults.
|
914
|
+
invalid_users_to_issue_defaults.each_key do |assignee|
|
912
915
|
invalid_user_message += "Assignee #{assignee} associated with issue_defaults\n"
|
913
916
|
end
|
914
917
|
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.
|
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-
|
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:
|