bl 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bl.rb +14 -2
  3. data/lib/bl/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c47b4305ada80a99c75782afbafe5bb84561b2cb
4
- data.tar.gz: 8f517556f92d8132351da47b8966301bea296aa3
3
+ metadata.gz: cda22e7125049261f92308e24b067e982ae3b23f
4
+ data.tar.gz: 4ea9c3991978ea61fe507c54660cfdf110d639fa
5
5
  SHA512:
6
- metadata.gz: 66fabaddddedb44db56db475cfddd26c207d1603df84b07a3c02eef7574bb24f588a3c8611579f9783ee487bd286da305496891537dbc047ffd36d4794d601ec
7
- data.tar.gz: c7d86770e589de5307da8adde623c191cf736da4cb0203d18e2093ef3ff92df93c93b72f8fdcdd087fd5660760a96be237d8d5589a16267248aa64f90b78fd4a
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
- Bl::CLI.client.post(
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
 
@@ -1,3 +1,3 @@
1
1
  module Bl
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - saki