linear-cli 0.8.0 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/changelog/0.8.1/fixed_problem_with_setting_verbosity.yml +4 -0
- data/changelog/0.8.1/tag.yml +1 -0
- data/exe/scripts/lcomment.sh +1 -1
- data/lib/linear/cli/caller.rb +1 -0
- data/lib/linear/cli/version.rb +1 -1
- data/lib/linear/cli/what_for.rb +15 -15
- data/lib/linear.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 837207569539a03287d8a08ad711c06698324a29b290d2fcc87c908157e4e555
|
4
|
+
data.tar.gz: 0b28e78a18942b06790fce45c6a8e70aca03774cdd9b58dff3bf1a60bba6c3ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e891850b2717b08d514291f00cff3f78ce8855ea46d1abc7037810cdf6082d182b3a8ddfe8f61b38ff0cf9ea5046711673347c42318e37cbab7097a40f84905
|
7
|
+
data.tar.gz: 4d733991e15f453ada7cfddbc4d0911fcb5703e928272db9944b083cab8c88739b7042d8991939bad636947f129387fa5f90887a65efb382e82066332a5c0f50
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.8.1] - 2024-02-06
|
6
|
+
### Fixed
|
7
|
+
- Fixed problem with setting verbosity (@bougyman)
|
8
|
+
|
5
9
|
## [0.8.0] - 2024-02-06
|
6
10
|
### Added
|
7
11
|
- Added Containerfile to build oci image (@bougyman)
|
@@ -55,8 +59,9 @@
|
|
55
59
|
### Added
|
56
60
|
- Added new changelog management system (changelog-rb) (@bougyman)
|
57
61
|
|
58
|
-
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.8.
|
59
|
-
[0.8.
|
62
|
+
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.8.1...HEAD
|
63
|
+
[0.8.1]: https://github.com/rubyists/linear-cli/compare/v0.8.0...0.8.1
|
64
|
+
[0.8.0]: https://github.com/rubyists/linear-cli/compare/v0.7.7...v0.8.0
|
60
65
|
[0.7.7]: https://github.com/rubyists/linear-cli/compare/v0.7.5...v0.7.7
|
61
66
|
[0.7.5]: https://github.com/rubyists/linear-cli/compare/v0.7.3...v0.7.5
|
62
67
|
[0.7.3]: https://github.com/rubyists/linear-cli/compare/v0.7.2...v0.7.3
|
@@ -0,0 +1 @@
|
|
1
|
+
date: 2024-02-06
|
data/exe/scripts/lcomment.sh
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
exec
|
2
|
+
exec lc issue update --comment - "$@"
|
data/lib/linear/cli/caller.rb
CHANGED
@@ -5,6 +5,7 @@ module Rubyists
|
|
5
5
|
module CLI
|
6
6
|
# This module is prepended to all commands to log their calls
|
7
7
|
module Caller
|
8
|
+
include SemanticLogger::Loggable
|
8
9
|
def self.prepended(mod) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
9
10
|
# Global options for all commands
|
10
11
|
mod.instance_eval do
|
data/lib/linear/cli/version.rb
CHANGED
data/lib/linear/cli/what_for.rb
CHANGED
@@ -15,12 +15,7 @@ module Rubyists
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def comment_for(issue, comment)
|
18
|
-
|
19
|
-
|
20
|
-
comment = prompt.ask("Comment for #{issue.identifier} - #{issue.title} (- to open an editor)", default: '-')
|
21
|
-
return comment unless comment == '-'
|
22
|
-
|
23
|
-
editor_for %w[comment .md]
|
18
|
+
ask_or_edit comment, "Comment for #{issue.identifier} - #{issue.title}"
|
24
19
|
end
|
25
20
|
|
26
21
|
def team_for(key = nil)
|
@@ -30,13 +25,8 @@ module Rubyists
|
|
30
25
|
end
|
31
26
|
|
32
27
|
def reason_for(reason = nil, four: nil)
|
33
|
-
return reason if reason && reason != '-'
|
34
|
-
|
35
28
|
question = four ? "Reason for #{TTY::Markdown.parse(four)}" : 'Reason'
|
36
|
-
|
37
|
-
return answer unless answer == '-'
|
38
|
-
|
39
|
-
editor_for %w[reason .md]
|
29
|
+
ask_or_edit reason, question
|
40
30
|
end
|
41
31
|
|
42
32
|
def cancelled_state_for(thingy)
|
@@ -55,10 +45,20 @@ module Rubyists
|
|
55
45
|
Rubyists::Linear::WorkflowState.find selection
|
56
46
|
end
|
57
47
|
|
58
|
-
def
|
59
|
-
return
|
48
|
+
def ask_or_edit(thing, question)
|
49
|
+
return thing if thing && thing != '-'
|
60
50
|
|
61
|
-
prompt.
|
51
|
+
answer = prompt.ask("#{question}: ('-' to open an editor)", default: '-')
|
52
|
+
return answer unless answer == '-'
|
53
|
+
|
54
|
+
answer = editor_for [thing, '.md']
|
55
|
+
raise SmellsBad, "No content provided for #{question}" if answer.empty?
|
56
|
+
|
57
|
+
answer
|
58
|
+
end
|
59
|
+
|
60
|
+
def description_for(description = nil)
|
61
|
+
ask_or_edit description, 'Description'
|
62
62
|
end
|
63
63
|
|
64
64
|
def title_for(title = nil)
|
data/lib/linear.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linear-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tj (bougyman) Vanderpoel
|
@@ -236,6 +236,8 @@ files:
|
|
236
236
|
- changelog/0.7.7/tag.yml
|
237
237
|
- changelog/0.8.0/added_containerfile_to_build_oci_image.yml
|
238
238
|
- changelog/0.8.0/tag.yml
|
239
|
+
- changelog/0.8.1/fixed_problem_with_setting_verbosity.yml
|
240
|
+
- changelog/0.8.1/tag.yml
|
239
241
|
- changelog/unreleased/.gitkeep
|
240
242
|
- cinemas/listings.cinema
|
241
243
|
- cinemas/listings.cinema.gif
|