linear-cli 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df0794178c2a028eeace27132cd5271f6b4e6b3002c36ba15d9b5548c5888cc2
4
- data.tar.gz: 62e02c37d7c2b16a364b65fcd7b77f4babc6a1dda0d574441ac77bf27cc90762
3
+ metadata.gz: c38ce0d4479af4333da0e0a1e509fe29e9b3e317405362d3d11fda4bdfa0e5bd
4
+ data.tar.gz: f0c2933ac355c454bceaba5060727ebf403278b70a3b995d6f5051ca8ee13656
5
5
  SHA512:
6
- metadata.gz: e7fdfd36b6107fe7caa23b4b34d585cdcc2b693affdb7be5c3314b51e9ade3f429ed6175a5eeb55de38be931709204c72da40a1553080fbfccc5e2f145608c05
7
- data.tar.gz: af11d48a295fb2fc2cbf4f8ef0c67209d88f582f488fc6145e500a56a8cfc9d562dedc2cbb26e69137fca3be62b3c5ae1311467d06e90ad182bdb77a9dda1e1c
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.1...HEAD
37
- [0.7.1]: https://github.com/rubyists/linear-cli/compare/v0.7.0...0.7.1
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,4 @@
1
+ type: Fixed
2
+ title: >
3
+ Fixed problem when trying to develop an unassigned issue
4
+ author: bougyman
@@ -0,0 +1 @@
1
+ date: 2024-02-04
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.7.1'
5
+ VERSION = '0.7.2'
6
6
  end
7
7
  end
@@ -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 has_one(relation, klass) # rubocop:disable Naming/PredicateName
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(data[relation]))
42
+ instance_variable_set("@#{relation}", Rubyists::Linear.const_get(klass).new(val))
42
43
  end
43
44
 
44
45
  define_method "#{relation}=" do |val|
@@ -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
- has_one :assignee, :User
14
- has_one :team, :Team
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.1
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