File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ def out
27
27
def current
28
28
if worktime = Worktime . current
29
29
if worktime . issue?
30
- puts "Signed in for ##{ worktime . issue_id } : #{ worktime . issue_subject } ."
30
+ puts "Signed in for #{ worktime . project_name } - # #{ worktime . issue_id } : #{ worktime . issue_subject } ."
31
31
else
32
- puts "Signed in."
32
+ puts "Signed in for #{ worktime . project_name } ."
33
33
end
34
34
else
35
35
puts "Not signed in."
Original file line number Diff line number Diff line change 1
1
module RedmineCLI
2
2
class Worktime
3
- attr_reader :issue_id , :issue_subject
3
+ attr_reader :issue_id , :issue_subject , :project_name
4
4
5
5
def initialize ( attributes )
6
+ @project_name = attributes [ 'project' ] [ 'name' ]
7
+ @project_identifier = attributes [ 'project' ] [ 'identifier' ]
8
+
6
9
if attributes [ 'issue' ]
7
10
@issue_id = attributes [ 'issue' ] [ 'id' ]
8
11
@issue_subject = attributes [ 'issue' ] [ 'subject' ]
You can’t perform that action at this time.
0 commit comments