bl 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bl.rb +14 -2
- data/lib/bl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda22e7125049261f92308e24b067e982ae3b23f
|
4
|
+
data.tar.gz: 4ea9c3991978ea61fe507c54660cfdf110d639fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9f49cd3b42bddd0e075c0d3901b6f5548665009ab96f0beb1badcd2dc644c0cf8973bbad435d7d691e66182e0bad9d405ced8062040d0cf302edb1edc11394
|
7
|
+
data.tar.gz: dbca7a3c3ab51e031ccc9bb9cd2764e6d204c07eab5a9b407d1cad55d6a03ba042199bcaee556be232af87749b49b9d7a25ce9d6113740424d1011e22c6cb48d
|
data/lib/bl.rb
CHANGED
@@ -102,13 +102,25 @@ module Bl
|
|
102
102
|
end
|
103
103
|
|
104
104
|
desc "add SUBJECT", "add an issue"
|
105
|
+
option :description, type: :string
|
106
|
+
option :issueTypeId, type: :numeric
|
107
|
+
option :categoryId, type: :array
|
108
|
+
option :versionId, type: :array
|
109
|
+
option :milestoneId, type: :array
|
110
|
+
option :priorityId, type: :numeric
|
111
|
+
# TODO: status
|
112
|
+
# TODO: resolution
|
113
|
+
option :assigneeId, type: :numeric
|
105
114
|
def add(subject)
|
106
|
-
|
107
|
-
"issues",
|
115
|
+
base_options = {
|
108
116
|
projectId: @@config[:issue][:default_project_id].to_i,
|
109
117
|
summary: subject,
|
110
118
|
issueTypeId: @@config[:issue][:default_issue_type_id].to_i,
|
111
119
|
priorityId: @@config[:issue][:default_priority_id].to_i
|
120
|
+
}
|
121
|
+
Bl::CLI.client.post(
|
122
|
+
"issues",
|
123
|
+
base_options.merge(options)
|
112
124
|
)
|
113
125
|
end
|
114
126
|
|
data/lib/bl/version.rb
CHANGED