linear-cli 0.9.8 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/Readme.adoc +15 -3
- data/changelog/0.9.10/fixed_rubocop_offenses.yml +4 -0
- data/changelog/0.9.10/tag.yml +1 -0
- data/lib/linear/cli/version.rb +1 -1
- data/lib/linear/cli/what_for.rb +4 -1
- data/lib/linear/commands/issue.rb +0 -1
- data/linear-cli.gemspec +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f80f6e0429ef96caf7e0fdeb4147ba984a354444dc4e6aff79d17561c2275f9
|
4
|
+
data.tar.gz: 830f4409ec2495fcd2cac0f05e60f76185ceeb4d9a45f190886033688521cad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '021758dea610e086e414601cc09c94c6655d3b1dc57e24089a9394ee9e5f352a1373b105cb2c1ee7e1171a359c40b2798092c4ebe42d73c0758c4740214d831e'
|
7
|
+
data.tar.gz: f6aa21d203ced89ca931efbdc0fc43e59df49738347c100d85b2a1af643bd056f4ee209a36780629483a8d0ca3f1719d32488aa6e868081265cd5375939095ee
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.9.10] - 2024-02-08
|
6
|
+
### Fixed
|
7
|
+
- Fixed rubocop offenses (@bougyman)
|
8
|
+
|
5
9
|
## [0.9.8] - 2024-02-08
|
6
10
|
### Added
|
7
11
|
- Added the console subcommand to get a pry console (@bougyman)
|
@@ -96,7 +100,8 @@
|
|
96
100
|
### Added
|
97
101
|
- Added new changelog management system (changelog-rb) (@bougyman)
|
98
102
|
|
99
|
-
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.
|
103
|
+
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.10...HEAD
|
104
|
+
[0.9.10]: https://github.com/rubyists/linear-cli/compare/0.9.8...0.9.10
|
100
105
|
[0.9.8]: https://github.com/rubyists/linear-cli/compare/v0.9.7...0.9.8
|
101
106
|
[0.9.7]: https://github.com/rubyists/linear-cli/compare/v0.9.5...v0.9.7
|
102
107
|
[0.9.5]: https://github.com/rubyists/linear-cli/compare/v0.9.4...v0.9.5
|
data/Readme.adoc
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
:tip-caption: 💡
|
7
7
|
:note-caption: 📝
|
8
8
|
:experimental:
|
9
|
+
:plc-url: https://raw.githubusercontent.com/rubyists/linear-cli/main/oci/plc
|
9
10
|
|
10
11
|
A command line interface to https://linear.app.
|
11
12
|
|
@@ -17,11 +18,23 @@ You can use the OCI container image to run the CLI without installing it.
|
|
17
18
|
|
18
19
|
[source,sh]
|
19
20
|
----
|
20
|
-
$ podman run -it --rm -e
|
21
|
+
$ podman run -w /git -v .:/git -v ~/.ssh:/root/.ssh -it --rm -e GITHUB_TOKEN="$GITHUB_TOKEN" -e LINEAR_API_KEY="$LINEAR_API_KEY" ghcr.io/rubyists/linear-cli:stable lcls <1>
|
21
22
|
$ docker run -it --rm -e LINEAR_API_KEY=your-api-key ghcr.io/rubyists/linear-cli:stable lcls <2>
|
22
23
|
----
|
23
24
|
<1> Podman Usage
|
24
|
-
<2> Docker Usage
|
25
|
+
<2> Docker Usage, without mounting your ssh keys and git dir. This will not be able to do git operations.
|
26
|
+
|
27
|
+
There is a {plc-url}[helper script] available to wrap this up for you.
|
28
|
+
|
29
|
+
NOTE: Git commands will require a passphrase for every operation if you are using an ssh key.
|
30
|
+
|
31
|
+
[source,sh]
|
32
|
+
----
|
33
|
+
$ curl -sL https://raw.githubusercontent.com/rubyists/linear-cli/main/oci/plc | sudo tee /usr/local/bin/lc
|
34
|
+
$ sudo chmod +x /usr/local/bin/lc
|
35
|
+
----
|
36
|
+
|
37
|
+
Then you can just run 'lc' to use the CLI.
|
25
38
|
|
26
39
|
=== Gem install (Most should use this)
|
27
40
|
|
@@ -193,5 +206,4 @@ Some command aliases are available to make things easier to type.
|
|
193
206
|
$ lcls
|
194
207
|
$ lcreate --description "This is a new issue" --labels Bug,Feature --team CRY
|
195
208
|
$ lclose --reason "This issue sucks" CRY-1234 CRY-456
|
196
|
-
$ lcancel --reason "These should never have been here" --trash CRY-1234 CRY-456
|
197
209
|
----
|
@@ -0,0 +1 @@
|
|
1
|
+
date: 2024-02-08
|
data/lib/linear/cli/version.rb
CHANGED
data/lib/linear/cli/what_for.rb
CHANGED
@@ -4,7 +4,10 @@ module Rubyists
|
|
4
4
|
module Linear
|
5
5
|
module CLI
|
6
6
|
# Module for the _for methods
|
7
|
-
module WhatFor
|
7
|
+
module WhatFor # rubocop:disable Metrics/ModuleLength
|
8
|
+
# TODO: Make this configurable
|
9
|
+
ALLOWED_PR_TYPES = 'bug|fix|sec(urity)|feat(ure)|chore|refactor|test|docs|style|ci|perf'
|
10
|
+
|
8
11
|
def editor_for(prefix)
|
9
12
|
file = Tempfile.open(prefix, Rubyists::Linear.tmpdir)
|
10
13
|
TTY::Editor.open(file.path)
|
data/linear-cli.gemspec
CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_dependency 'git', '~> 1.5'
|
40
40
|
spec.add_dependency 'gqli', '~> 1.2'
|
41
41
|
spec.add_dependency 'httpx', '~> 1.2'
|
42
|
-
spec.add_dependency '
|
42
|
+
spec.add_dependency 'pry-byebug'
|
43
43
|
spec.add_dependency 'semantic_logger', '~> 4.0'
|
44
44
|
spec.add_dependency 'sequel', '~> 5.0'
|
45
45
|
spec.add_dependency 'sqlite3', '~> 1.7'
|
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.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tj (bougyman) Vanderpoel
|
@@ -95,19 +95,19 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: pry-byebug
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: semantic_logger
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,6 +246,8 @@ files:
|
|
246
246
|
- changelog/0.9.0/tag.yml
|
247
247
|
- changelog/0.9.1/fixed_wrapper_to_be_more_normal_about_help_when_listing_leaf_commands.yml
|
248
248
|
- changelog/0.9.1/tag.yml
|
249
|
+
- changelog/0.9.10/fixed_rubocop_offenses.yml
|
250
|
+
- changelog/0.9.10/tag.yml
|
249
251
|
- changelog/0.9.3/fixed_probblem_with_tempfile_for_editing_operations.yml
|
250
252
|
- changelog/0.9.3/tag.yml
|
251
253
|
- changelog/0.9.4/fixed_issue_with_canceled_issues_showing_up_in_lcls.yml
|