linear-cli 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Readme.adoc +17 -2
- data/changelog/0.5.3/added_support_for_multiline_descriptions_without_failing.yml +4 -0
- data/changelog/0.5.3/changed_default_branch_to_use_upstream_default_branch_name.yml +4 -0
- data/changelog/0.5.3/tag.yml +1 -0
- data/changelog/0.5.4/tag.yml +1 -0
- data/lib/linear/api.rb +8 -1
- data/lib/linear/cli/sub_commands.rb +2 -2
- data/lib/linear/cli/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3178678b69a93bd4717bb28038fc549ed8cd3724ee1d987eab4be8d486025f04
|
4
|
+
data.tar.gz: ad68d009c3068e5787ac4b2a24520768954e7a648533c355a04702c3496a7c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5257b5c0e526ac9a51c974382769e9a0602793132f8b0ec7b8f35e7ba1c6e6ab6032b988d4c89e3af9b7959e09a9642e6d66a07f7c9e626444979517a016da0b
|
7
|
+
data.tar.gz: 49682ab5cf46469c720584fe72887581451a17f66edab356e1643fd391dd6fb441f06dbbfeb7d5decd96d4e76096ee51f11cd64a1c64cc90cfd44832d1d93d7a
|
data/CHANGELOG.md
CHANGED
@@ -2,3 +2,19 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.5.4] - 2024-02-04
|
6
|
+
|
7
|
+
## [0.5.3] - 2024-02-03
|
8
|
+
### Added
|
9
|
+
- Added support for multiline descriptions without failing (@bougyman)
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Changed default branch to use upstream default branch name (@bougyman)
|
13
|
+
|
14
|
+
## [0.5.2] - 2024-02-03
|
15
|
+
### Added
|
16
|
+
- Added new changelog management system (changelog-rb) (@bougyman)
|
17
|
+
|
18
|
+
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.5.4...HEAD
|
19
|
+
[0.5.4]: https://github.com/rubyists/linear-cli/compare/v0.5.3...0.5.4
|
20
|
+
[0.5.3]: https://github.com/rubyists/linear-cli/compare/v0.5.2...v0.5.3
|
data/Readme.adoc
CHANGED
@@ -82,6 +82,7 @@ $ lc w --teams
|
|
82
82
|
----
|
83
83
|
$ lcls
|
84
84
|
$ lcls --full
|
85
|
+
$ lcls -f CRY-1
|
85
86
|
----
|
86
87
|
|
87
88
|
==== Assign one or more issues to yourself (take em!)
|
@@ -100,7 +101,21 @@ $ lc issue take CRY-456 CRY-789
|
|
100
101
|
|
101
102
|
[source,sh]
|
102
103
|
----
|
103
|
-
$ lc i c --title "My new issue" --description "This is a new issue"
|
104
|
+
$ lc i c --title "My new issue" --description "This is a new issue" --labels Bug,Feature --team CRY
|
105
|
+
$ lc i c -t "My new issue" -T CRY -l Improvment,Feature
|
104
106
|
----
|
105
107
|
|
106
|
-
NOTE: If you don't provide a title or description, you will be prompted to enter them.
|
108
|
+
NOTE: If you don't provide a title, team, labels or description, you will be prompted to enter them.
|
109
|
+
|
110
|
+
==== Develop an issue
|
111
|
+
|
112
|
+
This will switch to the branch for the issue, creating the branch if it doesn't exist.
|
113
|
+
|
114
|
+
'dev' is a shortcut for the 'develop' subcommand of the issue command
|
115
|
+
|
116
|
+
[source,sh]
|
117
|
+
----
|
118
|
+
$ lc i dev CRY-1234
|
119
|
+
----
|
120
|
+
|
121
|
+
TIP: You may pass the --dev option to the create subcommand to immediately develop the creted issue.
|
@@ -0,0 +1 @@
|
|
1
|
+
date: 2024-02-03
|
@@ -0,0 +1 @@
|
|
1
|
+
date: 2024-02-04
|
data/lib/linear/api.rb
CHANGED
@@ -41,7 +41,13 @@ module Rubyists
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def query(query)
|
44
|
-
call format('{ "query":
|
44
|
+
call format('{ "query": %s }', query.to_s.to_json)
|
45
|
+
rescue StandardError => e
|
46
|
+
logger.error('Error in query', query:, error: e)
|
47
|
+
raise e unless Rubyists::Linear.verbosity > 2
|
48
|
+
|
49
|
+
require 'pry'
|
50
|
+
binding.pry # rubocop:disable Lint/Debugger
|
45
51
|
end
|
46
52
|
|
47
53
|
def api_key
|
@@ -51,6 +57,7 @@ module Rubyists
|
|
51
57
|
@api_key = ENV.fetch('LINEAR_API_KEY')
|
52
58
|
end
|
53
59
|
end
|
60
|
+
# Acts as a singleton for a GraphApi instance
|
54
61
|
Api = Rubyists::Linear::GraphApi.new
|
55
62
|
end
|
56
63
|
end
|
@@ -50,7 +50,7 @@ module Rubyists
|
|
50
50
|
def description_for(description = nil)
|
51
51
|
return description if description
|
52
52
|
|
53
|
-
prompt.multiline('Description:').join('
|
53
|
+
prompt.multiline('Description:').map(&:chomp).join('\\n')
|
54
54
|
end
|
55
55
|
|
56
56
|
def title_for(title = nil)
|
@@ -107,7 +107,7 @@ module Rubyists
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def default_branch
|
110
|
-
@default_branch ||= Git.default_branch git.
|
110
|
+
@default_branch ||= Git.default_branch git.remote.url
|
111
111
|
end
|
112
112
|
end
|
113
113
|
end
|
data/lib/linear/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linear-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tj (bougyman) Vanderpoel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -194,6 +194,10 @@ files:
|
|
194
194
|
- Readme.adoc
|
195
195
|
- changelog/0.5.2/added_new_changelog_management_system_changelog_rb.yml
|
196
196
|
- changelog/0.5.2/tag.yml
|
197
|
+
- changelog/0.5.3/added_support_for_multiline_descriptions_without_failing.yml
|
198
|
+
- changelog/0.5.3/changed_default_branch_to_use_upstream_default_branch_name.yml
|
199
|
+
- changelog/0.5.3/tag.yml
|
200
|
+
- changelog/0.5.4/tag.yml
|
197
201
|
- changelog/unreleased/.gitkeep
|
198
202
|
- exe/lc
|
199
203
|
- exe/lcls
|