jira_command 0.1.4 → 0.1.5
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/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/jira_command/command/issue.rb +3 -3
- data/lib/jira_command/prompt/base.rb +4 -4
- data/lib/jira_command/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2c9b3262387f7a4242b81d4f275403255f23b4580eb760b3f215632088101ae
|
|
4
|
+
data.tar.gz: c68abe1b2cdeff4fce6186a9d50b5652bdeacb26df4c1ce2e5712d25f9180545
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8a7f93e5df6080bc59e04678b80ad5a64b8d43c792386a97eb306f6144b0e106b90fbf4138f27ea2412919f4556f092e66c9bdc2abc1e7dd46b90616ed17b1a
|
|
7
|
+
data.tar.gz: 35391e5e8119bb35de7fdd065b082c966ef9c6ab0f893d4cbe33b963eca3c8b9e46c5331fe9f3dbd807aab6140808886f340780b2e67179a84a1de981b581d1b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -30,16 +30,17 @@ $ jira_command config create
|
|
|
30
30
|
> Please input your registered email address: <example@xincere.jp>
|
|
31
31
|
> Please input your token: <token got in jira>
|
|
32
32
|
|
|
33
|
-
$ jira_command help
|
|
34
33
|
Commands:
|
|
35
34
|
jira_command assign # set or unset assign in issue
|
|
36
35
|
jira_command config # create or clear configuration
|
|
37
36
|
jira_command help [COMMAND] # Describe available commands or one specific command
|
|
38
37
|
jira_command issue # create a issue
|
|
39
38
|
jira_command list # list up issues
|
|
39
|
+
jira_command sprint # sprint related features
|
|
40
40
|
jira_command status # show all status in project
|
|
41
41
|
jira_command transition # transition issues
|
|
42
42
|
jira_command user # list all users
|
|
43
|
+
jira_command version # show version
|
|
43
44
|
```
|
|
44
45
|
|
|
45
46
|
<b>if you want to cache items in your local to reduce api call, you can refer the following commands.</b>
|
|
@@ -59,7 +59,7 @@ module JiraCommand
|
|
|
59
59
|
|
|
60
60
|
return if issue_type[:name] == 'Epic'
|
|
61
61
|
|
|
62
|
-
baord_list = if options['refresh-board'].nil?
|
|
62
|
+
baord_list = if !config[:boards].nil? && options['refresh-board'].nil?
|
|
63
63
|
config[:boards]
|
|
64
64
|
else
|
|
65
65
|
agile_board = JiraCommand::Jira::Board.new(config)
|
|
@@ -100,7 +100,7 @@ module JiraCommand
|
|
|
100
100
|
def attach_epic(issue_key)
|
|
101
101
|
config = JiraCommand::Config.new.read
|
|
102
102
|
|
|
103
|
-
baord_list = if options['refresh-board'].nil?
|
|
103
|
+
baord_list = if !config[:boards].nil? && options['refresh-board'].nil?
|
|
104
104
|
config[:boards]
|
|
105
105
|
else
|
|
106
106
|
agile_board = JiraCommand::Jira::Board.new(config)
|
|
@@ -127,7 +127,7 @@ module JiraCommand
|
|
|
127
127
|
def attach_sprint(issue_key)
|
|
128
128
|
config = JiraCommand::Config.new.read
|
|
129
129
|
|
|
130
|
-
baord_list = if options['refresh-board'].nil?
|
|
130
|
+
baord_list = if !config[:boards].nil? && options['refresh-board'].nil?
|
|
131
131
|
config[:boards]
|
|
132
132
|
else
|
|
133
133
|
agile_board = JiraCommand::Jira::Board.new(config)
|
|
@@ -15,7 +15,7 @@ module JiraCommand
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def select_board(message: 'Please select board', refresh: false)
|
|
18
|
-
baord_list = if refresh
|
|
18
|
+
baord_list = if @config[:boards].nil? || refresh
|
|
19
19
|
agile_board = JiraCommand::Jira::Board.new(@config)
|
|
20
20
|
agile_board.list
|
|
21
21
|
else
|
|
@@ -30,7 +30,7 @@ module JiraCommand
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def select_issue_type(message:, refresh: false)
|
|
33
|
-
issue_types = if refresh
|
|
33
|
+
issue_types = if @config[:issue_types].nil? || refresh
|
|
34
34
|
jira_issue_type = JiraCommand::Jira::IssueType.new(@config)
|
|
35
35
|
jira_issue_type.list
|
|
36
36
|
else
|
|
@@ -45,7 +45,7 @@ module JiraCommand
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def select_project(message:, refresh: false)
|
|
48
|
-
projects = if refresh
|
|
48
|
+
projects = if @config[:projects].nil? || refresh
|
|
49
49
|
jira_project = JiraCommand::Jira::Project.new(@config)
|
|
50
50
|
jira_project.list
|
|
51
51
|
else
|
|
@@ -63,7 +63,7 @@ module JiraCommand
|
|
|
63
63
|
project_key: nil,
|
|
64
64
|
refresh: false,
|
|
65
65
|
additional: [])
|
|
66
|
-
user_list = if refresh
|
|
66
|
+
user_list = if @config[:users].nil? || refresh
|
|
67
67
|
user_api = JiraCommand::Jira::User.new(@config)
|
|
68
68
|
user_api.all_list(project: project_key)
|
|
69
69
|
else
|
data/lib/jira_command/version.rb
CHANGED