githuh 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b85ccd845fbf4f02072b566abd362adc5656eff6746c092ee1591011c69da0ab
4
- data.tar.gz: 7becd01e22f79e9a6c79dcb9292f5003d48a4fc57596c9ace415d1bff44f8e6a
3
+ metadata.gz: f0e93141a03f0e5928c713b604064e96959c05e46da042a8122fd354169f6c4e
4
+ data.tar.gz: a7e2a02d760f6a1e886f3fdd2086387e4e46b33404fd3c4158a929698867a40b
5
5
  SHA512:
6
- metadata.gz: d425dec858b7587d373b30a8c1dbdeddcdfda625230e32a0cc49ec9d4a28574c164d2330a01ff77c69f5bb57c164aa7c3b6cedfb37e27506dce28910eb176442
7
- data.tar.gz: dba51e9fa2685db0978cdb051801ec573f97fd43f740c28fea5250afba8b7e121e265d3f962ca5466a4138eb43344bd81c99558f5a7f7c7859323d2c7f916c84
6
+ metadata.gz: '0816ce0ad4649b24bb3f339bd953e11ca532b0e17858d96eedf6a783b41f47ff9e0279fea5ff35f37e2542d5e96ec464e74136fe03d730303956ce2b8d120e93'
7
+ data.tar.gz: faec900a0a5f38501bd2929ced73cf4840dc86a07fcaa5318ff98e59e5e69460c66a6b32139af648f72f5b5a62bb39a5f2840e3735ea7b01b3413878a615d7a8
data/.envrc CHANGED
@@ -2,3 +2,7 @@
2
2
  export PATH=$(pwd)/exe:${PATH}
3
3
  [[ -f .envrc.local ]] && source .envrc.local
4
4
 
5
+ [[ -f .env ]] && {
6
+ eval "$(cat .env | sed 's/^/export /g; /^$/d')"
7
+ }
8
+
@@ -1,25 +1,14 @@
1
- name: Ruby
1
+ name: RSpec
2
2
 
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
3
+ on: [push, pull_request]
8
4
 
9
5
  jobs:
10
- build:
11
-
6
+ test:
12
7
  runs-on: ubuntu-latest
13
-
14
8
  steps:
15
- - uses: actions/checkout@v2
16
- - name: Set up Ruby 2.6
17
- uses: actions/setup-ruby@v1
9
+ - uses: actions/checkout@v6
10
+ - uses: ruby/setup-ruby@v1
18
11
  with:
19
- ruby-version: 2.6.x
20
- - name: Run Tests
21
- run: |
22
- gem install bundler
23
- bundle install --jobs 4 --retry 3
24
- RUBYOPT=-W0 bundle exec rspec
25
- RUBYOPT=-W0 bundle exec rubocop
12
+ ruby-version: '4.0' # Not needed with a .ruby-version, .tool-versions or mise.toml
13
+ - run: bundle install -j 4
14
+ - run: bundle exec rspec --format documentation
data/.gitignore CHANGED
@@ -24,4 +24,7 @@ pkg
24
24
  .ruby-version
25
25
  *.csv
26
26
  .envrc.local
27
+ .env
27
28
  tmp/**
29
+ /.rubymate
30
+ /doc
data/.rubocop.yml CHANGED
@@ -2,11 +2,14 @@ inherit_from:
2
2
  - .rubocop_todo.yml
3
3
  - .relaxed-rubocop-2.4.yml
4
4
 
5
-
5
+ plugins:
6
+ - rubocop-rake
7
+ - rubocop-rspec
6
8
 
7
9
  AllCops:
8
- TargetRubyVersion: 2.6
10
+ TargetRubyVersion: 4
9
11
  UseCache: true
12
+ NewCops: enable
10
13
  DefaultFormatter: progress
11
14
  DisplayStyleGuide: true
12
15
  DisplayCopNames: true
data/.rubocop_todo.yml CHANGED
@@ -1,99 +1,93 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-09-11 02:48:55 UTC using RuboCop version 0.90.0.
3
+ # on 2026-04-21 01:47:48 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemspec
12
- Gemspec/RequiredRubyVersion:
9
+ # Offense count: 2
10
+ Lint/UselessConstantScoping:
13
11
  Exclude:
14
- - 'githuh.gemspec'
15
-
16
- # Offense count: 6
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: IndentOneStep, IndentationWidth.
19
- # SupportedStyles: case, end
20
- Layout/CaseIndentation:
21
- EnforcedStyle: end
12
+ - 'spec/support/coverage_badge.rb'
22
13
 
23
- # Offense count: 1
24
- # Cop supports --auto-correct.
25
- Layout/ElseAlignment:
14
+ # Offense count: 8
15
+ RSpec/AnyInstance:
26
16
  Exclude:
27
- - 'lib/githuh/cli/commands/issue/export.rb'
17
+ - 'spec/githuh/cli/launcher_spec.rb'
18
+ - 'spec/support/aruba_helper.rb'
28
19
 
29
- # Offense count: 3
30
- # Cop supports --auto-correct.
31
- # Configuration parameters: EnforcedStyleAlignWith, Severity.
32
- # SupportedStylesAlignWith: keyword, variable, start_of_line
33
- Layout/EndAlignment:
20
+ # Offense count: 12
21
+ # Configuration parameters: Prefixes, AllowedPatterns.
22
+ # Prefixes: when, with, without
23
+ RSpec/ContextWording:
34
24
  Exclude:
35
- - 'lib/githuh/cli/commands/issue/export.rb'
36
- - 'lib/githuh/cli/commands/repo/list.rb'
25
+ - 'spec/githuh/cli/commands/export_spec.rb'
26
+ - 'spec/githuh/cli/commands/help_spec.rb'
27
+ - 'spec/githuh/cli/commands/info_spec.rb'
28
+ - 'spec/githuh/cli/commands/list_spec.rb'
29
+ - 'spec/githuh/cli/commands/version_spec.rb'
30
+ - 'spec/support/aruba_helper.rb'
37
31
 
38
- # Offense count: 1
39
- # Cop supports --auto-correct.
40
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
41
- # SupportedHashRocketStyles: key, separator, table
42
- # SupportedColonStyles: key, separator, table
43
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
44
- Layout/HashAlignment:
45
- Exclude:
46
- - 'lib/githuh/cli/commands/issue/export.rb'
32
+ # Offense count: 2
33
+ # Configuration parameters: CountAsOne.
34
+ RSpec/ExampleLength:
35
+ Max: 6
47
36
 
48
- # Offense count: 1
49
- # Cop supports --auto-correct.
50
- # Configuration parameters: Width, IgnoredPatterns.
51
- Layout/IndentationWidth:
37
+ # Offense count: 8
38
+ RSpec/MultipleExpectations:
39
+ Max: 5
40
+
41
+ # Offense count: 4
42
+ # Configuration parameters: AllowSubject.
43
+ RSpec/MultipleMemoizedHelpers:
44
+ Max: 7
45
+
46
+ # Offense count: 2
47
+ # This cop supports unsafe autocorrection (--autocorrect-all).
48
+ RSpec/Output:
52
49
  Exclude:
53
- - 'lib/githuh/cli/commands/issue/export.rb'
50
+ - 'spec/support/run_helper.rb'
54
51
 
55
- # Offense count: 1
56
- # Cop supports --auto-correct.
57
- # Configuration parameters: EnforcedStyle.
58
- # SupportedStyles: final_newline, final_blank_line
59
- Layout/TrailingEmptyLines:
52
+ # Offense count: 3
53
+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
54
+ # SupportedInflectors: default, active_support
55
+ RSpec/SpecFilePathFormat:
60
56
  Exclude:
61
- - 'Gemfile'
57
+ - '**/spec/routing/**/*'
58
+ - 'spec/githuh/cli/commands/export_spec.rb'
59
+ - 'spec/githuh/cli/commands/info_spec.rb'
60
+ - 'spec/githuh/cli/commands/list_spec.rb'
62
61
 
63
- # Offense count: 1
64
- # Cop supports --auto-correct.
65
- Lint/NonDeterministicRequireOrder:
62
+ # Offense count: 4
63
+ RSpec/SubjectStub:
66
64
  Exclude:
67
- - 'spec/spec_helper.rb'
65
+ - 'spec/githuh/cli/commands/list_spec.rb'
66
+ - 'spec/githuh/llm_spec.rb'
68
67
 
69
- # Offense count: 1
70
- # Configuration parameters: AllowedMethods.
71
- # AllowedMethods: present?, blank?, presence, try, try!
72
- Lint/SafeNavigationChain:
68
+ # Offense count: 5
69
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
70
+ RSpec/VerifiedDoubles:
73
71
  Exclude:
74
- - 'lib/githuh/cli/commands/repo/list.rb'
72
+ - 'spec/githuh/cli/commands/export_spec.rb'
73
+ - 'spec/githuh/cli/commands/list_spec.rb'
74
+ - 'spec/support/aruba_helper.rb'
75
75
 
76
- # Offense count: 1
77
- # Cop supports --auto-correct.
78
- Lint/ScriptPermission:
76
+ # Offense count: 2
77
+ # This cop supports safe autocorrection (--autocorrect).
78
+ Rake/Desc:
79
79
  Exclude:
80
- - 'lib/githuh/cli/commands/issue/export.rb'
80
+ - 'Rakefile'
81
81
 
82
82
  # Offense count: 1
83
- # Cop supports --auto-correct.
84
- Style/ExpandPathArguments:
83
+ # This cop supports unsafe autocorrection (--autocorrect-all).
84
+ Style/GlobalStdStream:
85
85
  Exclude:
86
- - 'spec/spec_helper.rb'
87
-
88
- # Offense count: 12
89
- # Configuration parameters: .
90
- # SupportedStyles: annotated, template, unannotated
91
- Style/FormatStringToken:
92
- EnforcedStyle: unannotated
86
+ - 'spec/support/coverage_badge.rb'
93
87
 
94
- # Offense count: 2
95
- # Configuration parameters: MinBodyLength.
96
- Style/GuardClause:
88
+ # Offense count: 1
89
+ # This cop supports unsafe autocorrection (--autocorrect-all).
90
+ # Configuration parameters: Mode.
91
+ Style/StringConcatenation:
97
92
  Exclude:
98
- - 'lib/githuh/cli/commands/base.rb'
99
- - 'lib/githuh/cli/launcher.rb'
93
+ - 'spec/support/coverage_badge.rb'
data/.secrets.baseline ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "version": "1.5.0",
3
+ "plugins_used": [
4
+ {
5
+ "name": "ArtifactoryDetector"
6
+ },
7
+ {
8
+ "name": "AWSKeyDetector"
9
+ },
10
+ {
11
+ "name": "AzureStorageKeyDetector"
12
+ },
13
+ {
14
+ "name": "Base64HighEntropyString",
15
+ "limit": 4.5
16
+ },
17
+ {
18
+ "name": "BasicAuthDetector"
19
+ },
20
+ {
21
+ "name": "CloudantDetector"
22
+ },
23
+ {
24
+ "name": "DiscordBotTokenDetector"
25
+ },
26
+ {
27
+ "name": "GitHubTokenDetector"
28
+ },
29
+ {
30
+ "name": "GitLabTokenDetector"
31
+ },
32
+ {
33
+ "name": "HexHighEntropyString",
34
+ "limit": 3.0
35
+ },
36
+ {
37
+ "name": "IbmCloudIamDetector"
38
+ },
39
+ {
40
+ "name": "IbmCosHmacDetector"
41
+ },
42
+ {
43
+ "name": "IPPublicDetector"
44
+ },
45
+ {
46
+ "name": "JwtTokenDetector"
47
+ },
48
+ {
49
+ "name": "KeywordDetector",
50
+ "keyword_exclude": ""
51
+ },
52
+ {
53
+ "name": "MailchimpDetector"
54
+ },
55
+ {
56
+ "name": "NpmDetector"
57
+ },
58
+ {
59
+ "name": "OpenAIDetector"
60
+ },
61
+ {
62
+ "name": "PrivateKeyDetector"
63
+ },
64
+ {
65
+ "name": "PypiTokenDetector"
66
+ },
67
+ {
68
+ "name": "SendGridDetector"
69
+ },
70
+ {
71
+ "name": "SlackDetector"
72
+ },
73
+ {
74
+ "name": "SoftlayerDetector"
75
+ },
76
+ {
77
+ "name": "SquareOAuthDetector"
78
+ },
79
+ {
80
+ "name": "StripeDetector"
81
+ },
82
+ {
83
+ "name": "TelegramBotTokenDetector"
84
+ },
85
+ {
86
+ "name": "TwilioKeyDetector"
87
+ }
88
+ ],
89
+ "filters_used": [
90
+ {
91
+ "path": "detect_secrets.filters.allowlist.is_line_allowlisted"
92
+ },
93
+ {
94
+ "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
95
+ "min_level": 2
96
+ },
97
+ {
98
+ "path": "detect_secrets.filters.heuristic.is_indirect_reference"
99
+ },
100
+ {
101
+ "path": "detect_secrets.filters.heuristic.is_likely_id_string"
102
+ },
103
+ {
104
+ "path": "detect_secrets.filters.heuristic.is_lock_file"
105
+ },
106
+ {
107
+ "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
108
+ },
109
+ {
110
+ "path": "detect_secrets.filters.heuristic.is_potential_uuid"
111
+ },
112
+ {
113
+ "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
114
+ },
115
+ {
116
+ "path": "detect_secrets.filters.heuristic.is_sequential_string"
117
+ },
118
+ {
119
+ "path": "detect_secrets.filters.heuristic.is_swagger_file"
120
+ },
121
+ {
122
+ "path": "detect_secrets.filters.heuristic.is_templated_secret"
123
+ }
124
+ ],
125
+ "results": {},
126
+ "generated_at": "2026-04-13T21:29:03Z"
127
+ }
data/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased](https://github.com/kigster/githuh/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.3.0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Bump tzinfo from 1.2.7 to 2.0.5 [#3](https://github.com/kigster/githuh/pull/3) ([dependabot[bot]](https://github.com/apps/dependabot))
10
+
11
+ ## [v0.3.0](https://github.com/kigster/githuh/tree/v0.3.0) (2020-09-11)
12
+
13
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.2.1...v0.3.0)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - WIP: label mapping [#2](https://github.com/kigster/githuh/pull/2) ([kigster](https://github.com/kigster))
18
+
19
+ ## [v0.2.1](https://github.com/kigster/githuh/tree/v0.2.1) (2020-09-09)
20
+
21
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.2.0...v0.2.1)
22
+
23
+ **Implemented enhancements:**
24
+
25
+ - Support `issue export` command for Pivotal Tracker CSV [#1](https://github.com/kigster/githuh/pull/1) ([kigster](https://github.com/kigster))
26
+
27
+ ## [v0.2.0](https://github.com/kigster/githuh/tree/v0.2.0) (2020-08-31)
28
+
29
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.1.2...v0.2.0)
30
+
31
+ ## [v0.1.2](https://github.com/kigster/githuh/tree/v0.1.2) (2020-03-18)
32
+
33
+ [Full Changelog](https://github.com/kigster/githuh/compare/v0.1.0...v0.1.2)
34
+
35
+ ## [v0.1.0](https://github.com/kigster/githuh/tree/v0.1.0) (2020-03-12)
36
+
37
+ [Full Changelog](https://github.com/kigster/githuh/compare/c3c88b7d4771bdb4e8909daa19427e36d382dd37...v0.1.0)
38
+
39
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Gemfile CHANGED
@@ -1,6 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
+ gem "aruba"
8
+ gem "asciidoctor"
9
+ gem "awesome_print"
10
+ gem "coverage-badge"
11
+ gem "rake"
12
+ gem "rspec"
13
+ gem "rspec-its"
14
+ gem "rubocop"
15
+ gem "rubocop-rake"
16
+ gem "rubocop-rspec"
17
+ gem "simplecov", "~> 0.22"
18
+ gem "yard"