firespring_dev_commands 2.1.27 → 2.1.28
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 887cf6fa6942ca683459b0a7325fee216656f7575f750932a0236a3a67246f4c
|
4
|
+
data.tar.gz: b238f37f30f93e543018915924c8a2aefde74b771400846804bf974649711a76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2e3bd5b15893d2397969c0cc5a7f1aa1c64603dec853b415f81d71fac90450126ee68ffa8a4f1d20093e44453a2ad1a501529c2defca1f8689b67456760ccf9
|
7
|
+
data.tar.gz: a845da667386b9c289ce4dfc4f121a734271b8ef6347f1ab77aa08f179e77947c4c6c80176cae6407aacb068d0c6058c75d836ace68cf4b6cd97fb595bd22372
|
@@ -5,11 +5,13 @@ module Dev
|
|
5
5
|
# Issue subtypes which do not map to a story type
|
6
6
|
NON_STORY_TYPES = ['epic', 'review', 'sub-task', 'code review sub-task', 'pre-deploy sub-task', 'deploy sub-task', 'devops sub-task'].freeze
|
7
7
|
|
8
|
-
attr_accessor :data, :project, :id, :title, :points, :assignee, :resolved_date, :histories,
|
8
|
+
attr_accessor :data, :project, :parent, :id, :title, :points, :assignee, :resolved_date, :histories,
|
9
|
+
:last_in_progress_history, :first_in_review_history, :last_closed_history
|
9
10
|
|
10
11
|
def initialize(data)
|
11
12
|
@data = data
|
12
13
|
@project = Jira::Project.new(data)
|
14
|
+
@parent = Jira::Parent.new(data) if data.respond_to?(:parent)
|
13
15
|
@id = data.key
|
14
16
|
@title = data.summary
|
15
17
|
@points = calculate_points(data)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Dev
|
2
|
+
class Jira
|
3
|
+
# Contains information on the Jira parent issue
|
4
|
+
class Parent
|
5
|
+
attr_accessor :data, :id, :title
|
6
|
+
|
7
|
+
def initialize(data)
|
8
|
+
@data = data.parent
|
9
|
+
@id = data.parent['key']
|
10
|
+
@title = data.parent['fields']['summary']
|
11
|
+
end
|
12
|
+
|
13
|
+
# Converts the jira parent object to a string representation
|
14
|
+
def to_s
|
15
|
+
"[#{id}] #{title}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firespring_dev_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -353,6 +353,7 @@ files:
|
|
353
353
|
- lib/firespring_dev_commands/jira/histories.rb
|
354
354
|
- lib/firespring_dev_commands/jira/history.rb
|
355
355
|
- lib/firespring_dev_commands/jira/issue.rb
|
356
|
+
- lib/firespring_dev_commands/jira/parent.rb
|
356
357
|
- lib/firespring_dev_commands/jira/project.rb
|
357
358
|
- lib/firespring_dev_commands/jira/user.rb
|
358
359
|
- lib/firespring_dev_commands/jira/user/type.rb
|