linear-cli 0.9.11 → 0.9.13

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: fbe2c93fb352c00fa0d6f4e70eefe97b8c7b186286bc2b697f0bec7db47733be
4
- data.tar.gz: a1b8af70868fae5dbc79a687d94cdd52cd7d1443a258bdf536ba4fb4d5dfae3f
3
+ metadata.gz: 25ee54965477b382a3c205c0f478598f092ec4bacbda5eb1463edc0eb838c23e
4
+ data.tar.gz: 044f4415e5cdaee17ffe790498a23f95fe20799c9367c1237d153a637ca27561
5
5
  SHA512:
6
- metadata.gz: 10353e69600a732adb0add519feaf75d2682a4a0558486f383b4515d7d7a3fe20f4c6042666f4836f03efe38c49da9efd8ea127545d3f6799a63d4bfeda50a01
7
- data.tar.gz: 351134bcf762d2787d86a8520147f55e0bafec99094f993e32643dd1b0cf467f7dc737f6ffa2af7b93b1aead08ec7fc56c89f2f5d901546f1d525e6a1831658f
6
+ metadata.gz: 575d67a22d89c8117abd71537eada5d2f0c474b40de4ee73d61300c3842f616f6df5c232765727d052a850cf8ee7fe43593d7d17c50f60a160133d82c59c2fc5
7
+ data.tar.gz: 5b76ef325a66070c97b9b94fb01a7fde4aeb9c0b33b3f9d688bebc4d420ea2bc99447819c34bd22fcce680bb80af7d8e532297d1a24cf6b5dfaeff9f86f71642
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.9.11'
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[changelog/ 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'
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.11
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-20 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