linear-cli 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/changelog/0.7.2/fixed_problem_when_trying_to_develop_an_unassigned_issue.yml +4 -0
- data/changelog/0.7.2/tag.yml +1 -0
- data/lib/linear/cli/version.rb +1 -1
- data/lib/linear/commands/issue/develop.rb +1 -1
- data/lib/linear/commands/issue.rb +1 -0
- data/lib/linear/models/base_model.rb +3 -2
- data/lib/linear/models/issue.rb +2 -2
- 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: c38ce0d4479af4333da0e0a1e509fe29e9b3e317405362d3d11fda4bdfa0e5bd
|
4
|
+
data.tar.gz: f0c2933ac355c454bceaba5060727ebf403278b70a3b995d6f5051ca8ee13656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 726602148e3a8456f6b7dbdf90f39d3511bb1349ccb2701ff52449dfc9258df2843360e4d5643d67cca9b99a991671a92b76a8d93920c0976fe699a29e3bdfdc
|
7
|
+
data.tar.gz: 06a4a410223951ab0b65ce304b9433fc6400fe9d592f3c76d52cce611cf87b00c7020588cdd42c84d05adce01760f8a4a06d8b22f5765fbe5e4d0b16a468f1fa
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.7.2] - 2024-02-04
|
6
|
+
### Fixed
|
7
|
+
- Fixed problem when trying to develop an unassigned issue (@bougyman)
|
8
|
+
|
5
9
|
## [0.7.1] - 2024-02-04
|
6
10
|
### Fixed
|
7
11
|
- Fixed extra output when commenting on an inssue (@bougyman)
|
@@ -33,8 +37,9 @@
|
|
33
37
|
### Added
|
34
38
|
- Added new changelog management system (changelog-rb) (@bougyman)
|
35
39
|
|
36
|
-
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.7.
|
37
|
-
[0.7.
|
40
|
+
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.7.2...HEAD
|
41
|
+
[0.7.2]: https://github.com/rubyists/linear-cli/compare/v0.7.1...0.7.2
|
42
|
+
[0.7.1]: https://github.com/rubyists/linear-cli/compare/v0.7.0...v0.7.1
|
38
43
|
[0.7.0]: https://github.com/rubyists/linear-cli/compare/v0.6.1...v0.7.0
|
39
44
|
[0.6.1]: https://github.com/rubyists/linear-cli/compare/v0.6.0...v0.6.1
|
40
45
|
[0.6.0]: https://github.com/rubyists/linear-cli/compare/v0.5.5...v0.6.0
|
@@ -0,0 +1 @@
|
|
1
|
+
date: 2024-02-04
|
data/lib/linear/cli/version.rb
CHANGED
@@ -22,7 +22,7 @@ module Rubyists
|
|
22
22
|
|
23
23
|
def call(issue_id:, **options)
|
24
24
|
logger.debug('Developing issue', options:)
|
25
|
-
issue = gimme_da_issue!(issue_id, Rubyists::Linear::User.me)
|
25
|
+
issue = gimme_da_issue!(issue_id, me: Rubyists::Linear::User.me)
|
26
26
|
branch_name = issue.branchName
|
27
27
|
branch = branch_for(branch_name)
|
28
28
|
branch.checkout
|
@@ -61,6 +61,7 @@ module Rubyists
|
|
61
61
|
|
62
62
|
def gimme_da_issue!(issue_id, me: Rubyists::Linear::User.me) # rubocop:disable Naming/MethodParameterName
|
63
63
|
logger.trace('Looking up issue', issue_id:, me:)
|
64
|
+
require 'pry'; binding.pry
|
64
65
|
issue = Rubyists::Linear::Issue.find(issue_id)
|
65
66
|
if issue.assignee && issue.assignee[:id] == me.id
|
66
67
|
prompt.say("You are already assigned #{issue_id}")
|
@@ -34,11 +34,12 @@ module Rubyists
|
|
34
34
|
|
35
35
|
# Class methods for Linear models.
|
36
36
|
class << self
|
37
|
-
def
|
37
|
+
def one_to_one(relation, klass)
|
38
38
|
define_method relation do
|
39
39
|
return instance_variable_get("@#{relation}") if instance_variable_defined?("@#{relation}")
|
40
|
+
return unless (val = data[relation])
|
40
41
|
|
41
|
-
instance_variable_set("@#{relation}", Rubyists::Linear.const_get(klass).new(
|
42
|
+
instance_variable_set("@#{relation}", Rubyists::Linear.const_get(klass).new(val))
|
42
43
|
end
|
43
44
|
|
44
45
|
define_method "#{relation}=" do |val|
|
data/lib/linear/models/issue.rb
CHANGED
@@ -10,8 +10,8 @@ module Rubyists
|
|
10
10
|
# The Issue class represents a Linear issue.
|
11
11
|
class Issue # rubocop:disable Metrics/ClassLength
|
12
12
|
include SemanticLogger::Loggable
|
13
|
-
|
14
|
-
|
13
|
+
one_to_one :assignee, :User
|
14
|
+
one_to_one :team, :Team
|
15
15
|
|
16
16
|
BASIC_FILTER = { completedAt: { null: true } }.freeze
|
17
17
|
|
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.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tj (bougyman) Vanderpoel
|
@@ -213,6 +213,8 @@ files:
|
|
213
213
|
- changelog/0.7.0/tag.yml
|
214
214
|
- changelog/0.7.1/fixed_extra_output_when_commenting_on_an_inssue.yml
|
215
215
|
- changelog/0.7.1/tag.yml
|
216
|
+
- changelog/0.7.2/fixed_problem_when_trying_to_develop_an_unassigned_issue.yml
|
217
|
+
- changelog/0.7.2/tag.yml
|
216
218
|
- changelog/unreleased/.gitkeep
|
217
219
|
- exe/lc
|
218
220
|
- exe/lc.sh
|