linear-cli 0.9.10 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -2
  3. data/lib/linear/cli/version.rb +1 -1
  4. data/lib/linear/cli/what_for.rb +19 -2
  5. data/lib/linear/commands/issue/take.rb +1 -0
  6. data/lib/linear/commands/issue.rb +1 -1
  7. data/linear-cli.gemspec +3 -2
  8. data/oci/Containerfile +15 -7
  9. data/oci/build_image +2 -1
  10. metadata +2 -53
  11. data/changelog/0.5.2/added_new_changelog_management_system_changelog_rb.yml +0 -4
  12. data/changelog/0.5.2/tag.yml +0 -1
  13. data/changelog/0.5.3/added_support_for_multiline_descriptions_without_failing.yml +0 -4
  14. data/changelog/0.5.3/changed_default_branch_to_use_upstream_default_branch_name.yml +0 -4
  15. data/changelog/0.5.3/tag.yml +0 -1
  16. data/changelog/0.5.4/tag.yml +0 -1
  17. data/changelog/0.5.5/added_lclose_alias_and_issue_update_subcommand.yml +0 -4
  18. data/changelog/0.5.5/tag.yml +0 -1
  19. data/changelog/0.6.0/tag.yml +0 -1
  20. data/changelog/0.6.1/added_lcreate_alias.yml +0 -4
  21. data/changelog/0.6.1/tag.yml +0 -1
  22. data/changelog/0.7.0/added_better_help_when_using_the_lc_bin_and_aliases.yml +0 -4
  23. data/changelog/0.7.0/tag.yml +0 -1
  24. data/changelog/0.7.1/fixed_extra_output_when_commenting_on_an_inssue.yml +0 -4
  25. data/changelog/0.7.1/tag.yml +0 -1
  26. data/changelog/0.7.2/fixed_problem_when_trying_to_develop_an_unassigned_issue.yml +0 -4
  27. data/changelog/0.7.2/tag.yml +0 -1
  28. data/changelog/0.7.3/fixed_problem_with_issue_relationship_to_user.yml +0 -4
  29. data/changelog/0.7.3/tag.yml +0 -1
  30. data/changelog/0.7.5/fixed_problem_when_choosing_from_multiple_completed_states.yml +0 -4
  31. data/changelog/0.7.5/tag.yml +0 -1
  32. data/changelog/0.7.7/added_ability_to_attach_project_to_command.yml +0 -4
  33. data/changelog/0.7.7/added_issue_pr_command.yml +0 -4
  34. data/changelog/0.7.7/added_lcomment_alias_to_add_comments_to_issues.yml +0 -4
  35. data/changelog/0.7.7/tag.yml +0 -1
  36. data/changelog/0.8.0/added_containerfile_to_build_oci_image.yml +0 -4
  37. data/changelog/0.8.0/tag.yml +0 -1
  38. data/changelog/0.8.1/fixed_problem_with_setting_verbosity.yml +0 -4
  39. data/changelog/0.8.1/tag.yml +0 -1
  40. data/changelog/0.8.4/added_version_command.yml +0 -4
  41. data/changelog/0.8.4/tag.yml +0 -1
  42. data/changelog/0.8.6/fixed_completion_for_lc_alias.yml +0 -4
  43. data/changelog/0.8.6/tag.yml +0 -1
  44. data/changelog/0.9.0/added_version_ready_for_0_9_0_now_test_test_test_test_before_1_0.yml +0 -4
  45. data/changelog/0.9.0/tag.yml +0 -1
  46. data/changelog/0.9.1/fixed_wrapper_to_be_more_normal_about_help_when_listing_leaf_commands.yml +0 -4
  47. data/changelog/0.9.1/tag.yml +0 -1
  48. data/changelog/0.9.10/fixed_rubocop_offenses.yml +0 -4
  49. data/changelog/0.9.10/tag.yml +0 -1
  50. data/changelog/0.9.3/fixed_probblem_with_tempfile_for_editing_operations.yml +0 -4
  51. data/changelog/0.9.3/tag.yml +0 -1
  52. data/changelog/0.9.4/fixed_issue_with_canceled_issues_showing_up_in_lcls.yml +0 -4
  53. data/changelog/0.9.4/tag.yml +0 -1
  54. data/changelog/0.9.5/added_build_image_to_build_push_container_image.yml +0 -4
  55. data/changelog/0.9.5/added_user_information_to_comment_list_in_issue_view.yml +0 -4
  56. data/changelog/0.9.5/tag.yml +0 -1
  57. data/changelog/0.9.7/added_the_plc_wrapper_for_container_running_and_ssh_for_git_ops_in_the_container.yml +0 -4
  58. data/changelog/0.9.7/tag.yml +0 -1
  59. data/changelog/0.9.8/added_the_console_subcommand_to_get_a_pry_console.yml +0 -4
  60. data/changelog/0.9.8/tag.yml +0 -1
  61. data/changelog/unreleased/.gitkeep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f80f6e0429ef96caf7e0fdeb4147ba984a354444dc4e6aff79d17561c2275f9
4
- data.tar.gz: 830f4409ec2495fcd2cac0f05e60f76185ceeb4d9a45f190886033688521cad9
3
+ metadata.gz: 25ee54965477b382a3c205c0f478598f092ec4bacbda5eb1463edc0eb838c23e
4
+ data.tar.gz: 044f4415e5cdaee17ffe790498a23f95fe20799c9367c1237d153a637ca27561
5
5
  SHA512:
6
- metadata.gz: '021758dea610e086e414601cc09c94c6655d3b1dc57e24089a9394ee9e5f352a1373b105cb2c1ee7e1171a359c40b2798092c4ebe42d73c0758c4740214d831e'
7
- data.tar.gz: f6aa21d203ced89ca931efbdc0fc43e59df49738347c100d85b2a1af643bd056f4ee209a36780629483a8d0ca3f1719d32488aa6e868081265cd5375939095ee
6
+ metadata.gz: 575d67a22d89c8117abd71537eada5d2f0c474b40de4ee73d61300c3842f616f6df5c232765727d052a850cf8ee7fe43593d7d17c50f60a160133d82c59c2fc5
7
+ data.tar.gz: 5b76ef325a66070c97b9b94fb01a7fde4aeb9c0b33b3f9d688bebc4d420ea2bc99447819c34bd22fcce680bb80af7d8e532297d1a24cf6b5dfaeff9f86f71642
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.11] - 2024-02-20
6
+ ### Changed
7
+ - Reduced the container image size by 60% (@bougyman)
8
+
9
+ ### Fixed
10
+ - Fixed sqlite problem with ruby 3.3 (https://github.com/sparklemotion/sqlite3-ruby/issues/434) by pinning to alpine 3.18 (@bougyman)
11
+
5
12
  ## [0.9.10] - 2024-02-08
6
13
  ### Fixed
7
14
  - Fixed rubocop offenses (@bougyman)
@@ -100,8 +107,9 @@
100
107
  ### Added
101
108
  - Added new changelog management system (changelog-rb) (@bougyman)
102
109
 
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
110
+ [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.11...HEAD
111
+ [0.9.11]: https://github.com/rubyists/linear-cli/compare/v0.9.10...0.9.11
112
+ [0.9.10]: https://github.com/rubyists/linear-cli/compare/0.9.8...v0.9.10
105
113
  [0.9.8]: https://github.com/rubyists/linear-cli/compare/v0.9.7...0.9.8
106
114
  [0.9.7]: https://github.com/rubyists/linear-cli/compare/v0.9.5...v0.9.7
107
115
  [0.9.5]: https://github.com/rubyists/linear-cli/compare/v0.9.4...v0.9.5
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.9.10'
5
+ VERSION = '0.9.13'
6
6
  end
7
7
  end
@@ -6,7 +6,24 @@ module Rubyists
6
6
  # Module for the _for methods
7
7
  module WhatFor # rubocop:disable Metrics/ModuleLength
8
8
  # TODO: Make this configurable
9
- ALLOWED_PR_TYPES = 'bug|fix|sec(urity)|feat(ure)|chore|refactor|test|docs|style|ci|perf'
9
+ PR_TYPES = {
10
+ fix: 'Bug fixes',
11
+ feat: 'New feature work',
12
+ chore: 'Chores and maintenance',
13
+ eyes: 'Observability, metrics',
14
+ test: 'Testing code',
15
+ perf: 'Performance related work',
16
+ refactor: 'Code refactoring',
17
+ docs: 'Documentation Updates',
18
+ sec: 'Security-related, including dependency updates',
19
+ style: 'Style updates',
20
+ ci: 'Continuous integration related',
21
+ db: 'Database-Related (migrations, models, etc)'
22
+ }.freeze
23
+
24
+ PR_TYPE_SELECTIONS = PR_TYPES.invert
25
+
26
+ ALLOWED_PR_TYPES = /#{PR_TYPES.keys.join("|")}/
10
27
 
11
28
  def editor_for(prefix)
12
29
  file = Tempfile.open(prefix, Rubyists::Linear.tmpdir)
@@ -122,7 +139,7 @@ module Rubyists
122
139
  proposed_type = issue.title.match(/^(#{ALLOWED_PR_TYPES})/i)
123
140
  return proposed_type[1].downcase if proposed_type
124
141
 
125
- prompt.select('What type of PR is this?', %w[fix feature chore refactor test docs style ci perf security])
142
+ prompt.select('What type of PR is this?', PR_TYPE_SELECTIONS)
126
143
  end
127
144
 
128
145
  def pr_scope_for(title)
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'semantic_logger'
4
+ require_relative '../issue'
4
5
 
5
6
  module Rubyists
6
7
  # Namespace for Linear
@@ -61,7 +61,7 @@ module Rubyists
61
61
  def issue_pr(issue, **options)
62
62
  title = options[:title] || pr_title_for(issue)
63
63
  body = options[:description] || pr_description_for(issue)
64
- create_pr!(title:, body:)
64
+ prompt.warn create_pr!(title:, body:)
65
65
  end
66
66
 
67
67
  def attach_project(issue, project_search)
data/linear-cli.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'lib/linear'
3
+ require_relative 'lib/linear/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'linear-cli'
@@ -25,7 +25,8 @@ Gem::Specification.new do |spec|
25
25
  spec.files = Dir.chdir(__dir__) do
26
26
  `git ls-files -z`.split("\x0").reject do |f|
27
27
  (File.expand_path(f) == __FILE__) ||
28
- f.start_with?(*%w[pkg/ bin/ test/ spec/ features/ .git .github appveyor .rspec .rubocop cucumber.yml Gemfile])
28
+ f.start_with?(*%w[changelog/ pkg/ bin/ test/ spec/ features/ .git .github appveyor .rspec .rubocop cucumber.yml
29
+ Gemfile])
29
30
  end
30
31
  end
31
32
  spec.bindir = 'exe'
data/oci/Containerfile CHANGED
@@ -1,9 +1,10 @@
1
- FROM docker.io/ruby:3.3.0-alpine3.19 AS build-env
1
+ FROM docker.io/ruby:3.3.0-alpine3.18 AS build-env
2
2
 
3
3
 
4
4
  # Setting env up
5
5
  ARG APP_ROOT=/app
6
6
  ARG APP_VERSION
7
+ ARG BUNDLE_JOBS=8
7
8
  ENV LANG C.UTF-8
8
9
  ENV BUNDLE_SILENCE_ROOT_WARNING=1
9
10
 
@@ -13,17 +14,24 @@ RUN apk --update add bash ruby-dev build-base git sqlite-dev
13
14
  WORKDIR $APP_ROOT
14
15
 
15
16
  COPY . $APP_ROOT
16
- RUN gem i semantic_logger && bundle install && bundle exec rake build
17
+ RUN gem i semantic_logger && \
18
+ bundle config set build.nokogiri --use-system-libraries && \
19
+ bundle config set without 'test assets' && \
20
+ bundle install && \
21
+ bundle exec rake build
17
22
 
18
23
  ############### Build step done ###############
19
- FROM docker.io/ruby:3.3.0-alpine3.19
20
- ARG PACKAGES="bash sqlite sqlite-dev ruby-dev build-base github-cli openssh"
24
+ FROM docker.io/ruby:3.3.0-alpine3.18
25
+ ARG PACKAGES="bash sqlite github-cli openssh"
21
26
  ARG APP_VERSION
27
+ ARG APP_ROOT=/app
22
28
 
23
29
  # install packages
24
30
  RUN apk --update --no-cache add $PACKAGES
25
- COPY --from=build-env /app/pkg /tmp
26
- RUN gem install /tmp/linear-cli-${APP_VERSION}.gem
31
+ COPY --from=build-env /app /app
32
+ COPY --from=build-env /usr/local/bundle /usr/local/bundle
33
+ WORKDIR $APP_ROOT
34
+ RUN bundle exec gem i /app/pkg/linear-cli-${APP_VERSION}.gem
27
35
 
28
- CMD ["bundle", "exec", "lc"]
36
+ CMD ["lc"]
29
37
 
data/oci/build_image CHANGED
@@ -106,7 +106,8 @@ else
106
106
  die 6 "No container runtime found"
107
107
  fi
108
108
 
109
- $runtime build --build-arg "APP_VERSION=${tag}" -t "$IMAGE_NAME:$tag" -f "$containerfile" "$BUILD_CONTEXT" || die 7 "Failed to build image"
109
+ app_version=$(bundle exec lc version)
110
+ $runtime build --build-arg "APP_VERSION=${app_version}" -t "$IMAGE_NAME:$tag" -f "$containerfile" "$BUILD_CONTEXT" || die 7 "Failed to build image"
110
111
 
111
112
  set -x
112
113
  [ $push -eq 1 ] || exit 0
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.9.10
4
+ version: 0.9.13
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-08 00:00:00.000000000 Z
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -209,57 +209,6 @@ files:
209
209
  - LICENSE.txt
210
210
  - Rakefile
211
211
  - Readme.adoc
212
- - changelog/0.5.2/added_new_changelog_management_system_changelog_rb.yml
213
- - changelog/0.5.2/tag.yml
214
- - changelog/0.5.3/added_support_for_multiline_descriptions_without_failing.yml
215
- - changelog/0.5.3/changed_default_branch_to_use_upstream_default_branch_name.yml
216
- - changelog/0.5.3/tag.yml
217
- - changelog/0.5.4/tag.yml
218
- - changelog/0.5.5/added_lclose_alias_and_issue_update_subcommand.yml
219
- - changelog/0.5.5/tag.yml
220
- - changelog/0.6.0/tag.yml
221
- - changelog/0.6.1/added_lcreate_alias.yml
222
- - changelog/0.6.1/tag.yml
223
- - changelog/0.7.0/added_better_help_when_using_the_lc_bin_and_aliases.yml
224
- - changelog/0.7.0/tag.yml
225
- - changelog/0.7.1/fixed_extra_output_when_commenting_on_an_inssue.yml
226
- - changelog/0.7.1/tag.yml
227
- - changelog/0.7.2/fixed_problem_when_trying_to_develop_an_unassigned_issue.yml
228
- - changelog/0.7.2/tag.yml
229
- - changelog/0.7.3/fixed_problem_with_issue_relationship_to_user.yml
230
- - changelog/0.7.3/tag.yml
231
- - changelog/0.7.5/fixed_problem_when_choosing_from_multiple_completed_states.yml
232
- - changelog/0.7.5/tag.yml
233
- - changelog/0.7.7/added_ability_to_attach_project_to_command.yml
234
- - changelog/0.7.7/added_issue_pr_command.yml
235
- - changelog/0.7.7/added_lcomment_alias_to_add_comments_to_issues.yml
236
- - changelog/0.7.7/tag.yml
237
- - changelog/0.8.0/added_containerfile_to_build_oci_image.yml
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
241
- - changelog/0.8.4/added_version_command.yml
242
- - changelog/0.8.4/tag.yml
243
- - changelog/0.8.6/fixed_completion_for_lc_alias.yml
244
- - changelog/0.8.6/tag.yml
245
- - changelog/0.9.0/added_version_ready_for_0_9_0_now_test_test_test_test_before_1_0.yml
246
- - changelog/0.9.0/tag.yml
247
- - changelog/0.9.1/fixed_wrapper_to_be_more_normal_about_help_when_listing_leaf_commands.yml
248
- - changelog/0.9.1/tag.yml
249
- - changelog/0.9.10/fixed_rubocop_offenses.yml
250
- - changelog/0.9.10/tag.yml
251
- - changelog/0.9.3/fixed_probblem_with_tempfile_for_editing_operations.yml
252
- - changelog/0.9.3/tag.yml
253
- - changelog/0.9.4/fixed_issue_with_canceled_issues_showing_up_in_lcls.yml
254
- - changelog/0.9.4/tag.yml
255
- - changelog/0.9.5/added_build_image_to_build_push_container_image.yml
256
- - changelog/0.9.5/added_user_information_to_comment_list_in_issue_view.yml
257
- - changelog/0.9.5/tag.yml
258
- - changelog/0.9.7/added_the_plc_wrapper_for_container_running_and_ssh_for_git_ops_in_the_container.yml
259
- - changelog/0.9.7/tag.yml
260
- - changelog/0.9.8/added_the_console_subcommand_to_get_a_pry_console.yml
261
- - changelog/0.9.8/tag.yml
262
- - changelog/unreleased/.gitkeep
263
212
  - cinemas/listings.cinema
264
213
  - cinemas/listings.cinema.gif
265
214
  - exe/lc
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added new changelog management system (changelog-rb)
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-03
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added support for multiline descriptions without failing
4
- author: bougyman
@@ -1,4 +0,0 @@
1
- type: Changed
2
- title: >
3
- Changed default branch to use upstream default branch name
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-03
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added lclose alias and 'issue update' subcommand
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added lcreate alias
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added better help when using the lc bin and aliases
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed extra output when commenting on an inssue
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed problem when trying to develop an unassigned issue
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed problem with issue relationship to user
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-04
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed problem when choosing from multiple completed states
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-05
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added ability to attach project to command
4
- author: bougyman
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added issue pr command
4
- author: bougyman
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added lcomment alias to add comments to issues
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added Containerfile to build oci image
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed problem with setting verbosity
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added version command
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed completion for lc alias
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added version. Ready for 0.9.0, now test-test-test-test before 1.0
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed wrapper to be more normal about help when listing leaf commands
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-06
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed rubocop offenses
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-08
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed probblem with tempfile for editing operations
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-07
@@ -1,4 +0,0 @@
1
- type: Fixed
2
- title: >
3
- Fixed issue with canceled issues showing up in lcls
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-07
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added build_image to build/push container image
4
- author: bougyman
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added user information to comment list in issue view
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-08
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added the plc wrapper for container running, and ssh for git ops in the container
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-08
@@ -1,4 +0,0 @@
1
- type: Added
2
- title: >
3
- Added the console subcommand to get a pry console
4
- author: bougyman
@@ -1 +0,0 @@
1
- date: 2024-02-08
File without changes