geet 0.27.1 → 0.27.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/.rubocop.yml +73 -59
- data/Gemfile +1 -1
- data/geet.gemspec +1 -1
- data/lib/geet/commandline/configuration.rb +10 -10
- data/lib/geet/github/abstract_issue.rb +3 -3
- data/lib/geet/github/issue.rb +1 -1
- data/lib/geet/github/label.rb +1 -1
- data/lib/geet/github/milestone.rb +2 -2
- data/lib/geet/github/pr.rb +5 -5
- data/lib/geet/gitlab/label.rb +1 -1
- data/lib/geet/gitlab/pr.rb +1 -1
- data/lib/geet/services/create_issue.rb +1 -1
- data/lib/geet/utils/git_client.rb +1 -1
- data/lib/geet/version.rb +1 -1
- data/spec/unit/github/pr_spec.rb +30 -30
- metadata +3 -4
- data/.rubocop_todo.yml +0 -466
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c37242c53ca13fb80b44930526950f9bc17c94ee7a3075d535451c76a599f2e
|
|
4
|
+
data.tar.gz: bf8b1009433f594a4da608d6e7a03b85e1954cb6afe82bc733fbad3c6e6ca300
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43681773afc1da211b90587d02f88ca6b8a8e4045398ccdb96b68e1e18f69eb9a2a3f484c075dcf1d5fb13c4f9a19a0e221df503b0546d34617ae2a9b273513d
|
|
7
|
+
data.tar.gz: 8f139010b72eb1df6a32943909443ed5c54d1ff968236fbb040a85f276706776b6e8d23fadb906028aa910070364422b56ff93901e0908d1e0d271eaae3f07cc
|
data/.rubocop.yml
CHANGED
|
@@ -1,77 +1,91 @@
|
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
|
2
1
|
AllCops:
|
|
3
|
-
TargetRubyVersion: 2
|
|
2
|
+
TargetRubyVersion: 3.2
|
|
3
|
+
DisabledByDefault: true
|
|
4
|
+
SuggestExtensions: false
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Enabled: false
|
|
10
|
-
|
|
11
|
-
Metrics/AbcSize:
|
|
12
|
-
Exclude:
|
|
13
|
-
- 'bin/geet' # Program entry point switch/case
|
|
14
|
-
|
|
15
|
-
Metrics/BlockLength:
|
|
16
|
-
Exclude:
|
|
17
|
-
- 'spec/**/*_spec.rb' # RSpec is styled in long blocks
|
|
18
|
-
|
|
19
|
-
Metrics/ClassLength:
|
|
20
|
-
Exclude:
|
|
21
|
-
- 'lib/geet/git/repository.rb'
|
|
22
|
-
|
|
23
|
-
Metrics/CyclomaticComplexity:
|
|
24
|
-
Exclude:
|
|
25
|
-
- 'lib/geet/github/api_interface.rb' # Switch-case (HTTP) parameter decoding
|
|
26
|
-
- 'lib/geet/gitlab/api_interface.rb' # Switch-case (HTTP) parameter decoding
|
|
27
|
-
- 'bin/geet' # Program entry point switch/case
|
|
28
|
-
|
|
29
|
-
Metrics/LineLength:
|
|
30
|
-
Max: 120
|
|
31
|
-
Exclude:
|
|
32
|
-
- 'lib/geet/git/repository.rb' # Table-style code
|
|
33
|
-
- 'lib/geet/commandline/configuration.rb' # Table-style code
|
|
34
|
-
|
|
35
|
-
Metrics/MethodLength:
|
|
36
|
-
Max: 20
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'bin/geet' # Program entry point switch/case
|
|
39
|
-
- 'lib/geet/commandline/configuration.rb' # Table-style code
|
|
40
|
-
|
|
41
|
-
Metrics/ParameterLists:
|
|
42
|
-
CountKeywordArgs: false
|
|
6
|
+
# Remove empty lines at the beginning and end of class definitions
|
|
7
|
+
Layout/EmptyLinesAroundClassBody:
|
|
8
|
+
Enabled: true
|
|
9
|
+
EnforcedStyle: no_empty_lines
|
|
43
10
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- 'bin/geet' # Program entry point switch/case
|
|
11
|
+
# Remove empty lines at the beginning and end of module definitions
|
|
12
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
13
|
+
Enabled: true
|
|
14
|
+
EnforcedStyle: no_empty_lines
|
|
49
15
|
|
|
50
|
-
|
|
51
|
-
|
|
16
|
+
# Remove space after unary ! operator
|
|
17
|
+
# Examples: "! foo" -> "!foo"
|
|
18
|
+
Layout/SpaceAfterNot:
|
|
19
|
+
Enabled: true
|
|
52
20
|
|
|
53
|
-
|
|
54
|
-
|
|
21
|
+
# Remove spaces inside block parameter pipes
|
|
22
|
+
# Examples: { | bar | baz } -> { |bar| baz }
|
|
23
|
+
Layout/SpaceAroundBlockParameters:
|
|
24
|
+
Enabled: true
|
|
25
|
+
EnforcedStyleInsidePipes: no_space
|
|
55
26
|
|
|
56
|
-
|
|
57
|
-
|
|
27
|
+
# Remove spaces inside array brackets
|
|
28
|
+
# Examples: [ 1, 2 ] -> [1, 2]
|
|
29
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
|
30
|
+
Enabled: true
|
|
31
|
+
EnforcedStyle: no_space
|
|
58
32
|
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
# Remove spaces inside hash braces
|
|
34
|
+
# Examples: { a: 1 } -> {a: 1}
|
|
35
|
+
# Note: This does NOT affect blocks like foo { |bar| baz }
|
|
36
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
37
|
+
Enabled: true
|
|
38
|
+
EnforcedStyle: no_space
|
|
61
39
|
|
|
62
|
-
|
|
63
|
-
|
|
40
|
+
# Remove spaces inside parentheses
|
|
41
|
+
# Examples: foo( bar ) -> foo(bar)
|
|
42
|
+
Layout/SpaceInsideParens:
|
|
43
|
+
Enabled: true
|
|
44
|
+
EnforcedStyle: no_space
|
|
64
45
|
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
# Remove spaces inside reference brackets (hash/array access)
|
|
47
|
+
# Examples: options[ :key ] -> options[:key]
|
|
48
|
+
Layout/SpaceInsideReferenceBrackets:
|
|
49
|
+
Enabled: true
|
|
50
|
+
EnforcedStyle: no_space
|
|
67
51
|
|
|
68
|
-
|
|
69
|
-
|
|
52
|
+
# Remove spaces inside string interpolations
|
|
53
|
+
# Examples: "#{ foo }" -> "#{foo}"
|
|
54
|
+
Layout/SpaceInsideStringInterpolation:
|
|
55
|
+
Enabled: true
|
|
56
|
+
EnforcedStyle: no_space
|
|
70
57
|
|
|
58
|
+
# Ensure exactly one newline at the end of each file
|
|
59
|
+
Layout/TrailingEmptyLines:
|
|
60
|
+
Enabled: true
|
|
61
|
+
EnforcedStyle: final_newline
|
|
62
|
+
|
|
63
|
+
# Enforce trailing commas in multiline array literals
|
|
64
|
+
# Examples:
|
|
65
|
+
# [
|
|
66
|
+
# 1,
|
|
67
|
+
# 2
|
|
68
|
+
# ]
|
|
69
|
+
# becomes:
|
|
70
|
+
# [
|
|
71
|
+
# 1,
|
|
72
|
+
# 2,
|
|
73
|
+
# ]
|
|
71
74
|
Style/TrailingCommaInArrayLiteral:
|
|
72
75
|
EnforcedStyleForMultiline: consistent_comma
|
|
73
76
|
Enabled: true
|
|
74
77
|
|
|
78
|
+
# Enforce trailing commas in multiline hash literals
|
|
79
|
+
# Examples:
|
|
80
|
+
# {
|
|
81
|
+
# a: 1,
|
|
82
|
+
# b: 2
|
|
83
|
+
# }
|
|
84
|
+
# becomes:
|
|
85
|
+
# {
|
|
86
|
+
# a: 1,
|
|
87
|
+
# b: 2,
|
|
88
|
+
# }
|
|
75
89
|
Style/TrailingCommaInHashLiteral:
|
|
76
90
|
EnforcedStyleForMultiline: consistent_comma
|
|
77
91
|
Enabled: true
|
data/Gemfile
CHANGED
data/geet.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
9
|
s.required_ruby_version = '>= 3.2.0'
|
|
10
10
|
s.authors = ['Saverio Miroddi']
|
|
11
|
-
s.date = '2026-01-
|
|
11
|
+
s.date = '2026-01-18'
|
|
12
12
|
s.email = ['saverio.pub2@gmail.com']
|
|
13
13
|
s.homepage = 'https://github.com/saveriomiroddi/geet'
|
|
14
14
|
s.summary = 'Commandline interface for performing SCM host operations, eg. create a PR on GitHub'
|
|
@@ -14,7 +14,7 @@ module Geet
|
|
|
14
14
|
['-s', '--stdin', "Read content from stdin"],
|
|
15
15
|
['-o', '--open-browser', "Open the gist link in the browser after creation"],
|
|
16
16
|
'filename',
|
|
17
|
-
'[description]'
|
|
17
|
+
'[description]',
|
|
18
18
|
].freeze
|
|
19
19
|
|
|
20
20
|
# SimpleScripting 0.9.3 doesn't allow frozen arrays when hash options are present.
|
|
@@ -27,7 +27,7 @@ module Geet
|
|
|
27
27
|
['-a', '--assignees john,tom,adrian,kevin', 'Assignee logins'],
|
|
28
28
|
['-s', '--summary title_and_description', 'Set the summary (title and optionally description'],
|
|
29
29
|
['-u', '--upstream', 'Create on the upstream repository'],
|
|
30
|
-
long_help: 'The default editor will be opened for editing title and description.'
|
|
30
|
+
long_help: 'The default editor will be opened for editing title and description.',
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
LABEL_CREATE_OPTIONS = [
|
|
@@ -46,12 +46,12 @@ module Geet
|
|
|
46
46
|
].freeze
|
|
47
47
|
|
|
48
48
|
MILESTONE_CLOSE_OPTIONS = [
|
|
49
|
-
long_help: 'Close milestones.'
|
|
49
|
+
long_help: 'Close milestones.',
|
|
50
50
|
]
|
|
51
51
|
|
|
52
52
|
MILESTONE_CREATE_OPTIONS = [
|
|
53
53
|
'title',
|
|
54
|
-
long_help: 'Create a milestone.'
|
|
54
|
+
long_help: 'Create a milestone.',
|
|
55
55
|
]
|
|
56
56
|
|
|
57
57
|
MILESTONE_LIST_OPTIONS = [
|
|
@@ -62,7 +62,7 @@ module Geet
|
|
|
62
62
|
['-o', '--open-browser', "Don't open the PR link in the browser after creation"],
|
|
63
63
|
['-u', '--upstream', 'Comment on the upstream repository'],
|
|
64
64
|
'comment',
|
|
65
|
-
long_help: 'Add a comment to the PR for the current branch.'
|
|
65
|
+
long_help: 'Add a comment to the PR for the current branch.',
|
|
66
66
|
]
|
|
67
67
|
|
|
68
68
|
PR_CREATE_OPTIONS = [
|
|
@@ -75,7 +75,7 @@ module Geet
|
|
|
75
75
|
['-r', '--reviewers john,tom,adrian,kevin', 'Reviewer logins'],
|
|
76
76
|
['-s', '--summary title_and_description', 'Set the summary (title and optionally description'],
|
|
77
77
|
['-u', '--upstream', 'Create on the upstream repository'],
|
|
78
|
-
long_help: <<~STR
|
|
78
|
+
long_help: <<~STR,
|
|
79
79
|
The default editor will be opened for editing title and description; if the PR adds one commit only, the content will be prepopulated with the commit description.
|
|
80
80
|
|
|
81
81
|
The operation is aborted if the current tree is dirty.
|
|
@@ -95,21 +95,21 @@ module Geet
|
|
|
95
95
|
['-d', '--delete-branch', 'Delete the branch after merging'],
|
|
96
96
|
['-s', '--squash', 'Squash merge'],
|
|
97
97
|
['-u', '--upstream', 'List on the upstream repository'],
|
|
98
|
-
long_help: 'Merge the PR for the current branch'
|
|
98
|
+
long_help: 'Merge the PR for the current branch',
|
|
99
99
|
]
|
|
100
100
|
|
|
101
101
|
PR_OPEN_OPTIONS = [
|
|
102
102
|
['-u', '--upstream', 'Open on the upstream repository'],
|
|
103
|
-
long_help: 'Open in the browser the PR for the current branch'
|
|
103
|
+
long_help: 'Open in the browser the PR for the current branch',
|
|
104
104
|
]
|
|
105
105
|
|
|
106
106
|
REPO_ADD_UPSTREAM_OPTIONS = [
|
|
107
|
-
long_help: 'Add the upstream repository to the current repository (configuration).'
|
|
107
|
+
long_help: 'Add the upstream repository to the current repository (configuration).',
|
|
108
108
|
]
|
|
109
109
|
|
|
110
110
|
REPO_OPEN_OPTIONS = [
|
|
111
111
|
['-u', '--upstream', 'Open the upstream repository'],
|
|
112
|
-
long_help: 'Open the current repository in the browser'
|
|
112
|
+
long_help: 'Open the current repository in the browser',
|
|
113
113
|
]
|
|
114
114
|
|
|
115
115
|
# Commands decoding table
|
|
@@ -70,7 +70,7 @@ module Geet
|
|
|
70
70
|
sig { params(users: T.any(String, T::Array[String])).void }
|
|
71
71
|
def assign_users(users)
|
|
72
72
|
api_path = "issues/#{@number}/assignees"
|
|
73
|
-
request_data = {
|
|
73
|
+
request_data = {assignees: Array(users)}
|
|
74
74
|
|
|
75
75
|
@api_interface.send_request(api_path, data: request_data)
|
|
76
76
|
end
|
|
@@ -87,7 +87,7 @@ module Geet
|
|
|
87
87
|
sig { params(comment: String).void }
|
|
88
88
|
def comment(comment)
|
|
89
89
|
api_path = "issues/#{@number}/comments"
|
|
90
|
-
request_data = {
|
|
90
|
+
request_data = {body: comment}
|
|
91
91
|
|
|
92
92
|
@api_interface.send_request(api_path, data: request_data)
|
|
93
93
|
end
|
|
@@ -96,7 +96,7 @@ module Geet
|
|
|
96
96
|
#
|
|
97
97
|
sig { params(milestone: Integer).void }
|
|
98
98
|
def edit(milestone:)
|
|
99
|
-
request_data = {
|
|
99
|
+
request_data = {milestone: milestone}
|
|
100
100
|
api_path = "issues/#{@number}"
|
|
101
101
|
|
|
102
102
|
@api_interface.send_request(api_path, data: request_data, http_method: :patch)
|
data/lib/geet/github/issue.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Geet
|
|
|
15
15
|
}
|
|
16
16
|
def self.create(title, description, api_interface)
|
|
17
17
|
api_path = 'issues'
|
|
18
|
-
request_data = {
|
|
18
|
+
request_data = {title:, body: description}
|
|
19
19
|
|
|
20
20
|
response = T.cast(
|
|
21
21
|
api_interface.send_request(api_path, data: request_data),
|
data/lib/geet/github/label.rb
CHANGED
|
@@ -50,7 +50,7 @@ module Geet
|
|
|
50
50
|
}
|
|
51
51
|
def self.create(title, api_interface)
|
|
52
52
|
api_path = 'milestones'
|
|
53
|
-
request_data = {
|
|
53
|
+
request_data = {title: title}
|
|
54
54
|
|
|
55
55
|
response = T.cast(
|
|
56
56
|
api_interface.send_request(api_path, data: request_data),
|
|
@@ -102,7 +102,7 @@ module Geet
|
|
|
102
102
|
}
|
|
103
103
|
def self.close(number, api_interface)
|
|
104
104
|
api_path = "milestones/#{number}"
|
|
105
|
-
request_data = {
|
|
105
|
+
request_data = {state: STATE_CLOSED}
|
|
106
106
|
|
|
107
107
|
api_interface.send_request(api_path, data: request_data)
|
|
108
108
|
end
|
data/lib/geet/github/pr.rb
CHANGED
|
@@ -43,7 +43,7 @@ module Geet
|
|
|
43
43
|
head = "#{authenticated_user}:#{head}"
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
request_data = {
|
|
46
|
+
request_data = {title:, body: description, head:, base:, draft:}
|
|
47
47
|
|
|
48
48
|
response = T.cast(api_interface.send_request(api_path, data: request_data), T::Hash[String, T.untyped])
|
|
49
49
|
|
|
@@ -102,7 +102,7 @@ module Geet
|
|
|
102
102
|
label == "#{owner}:#{head}"
|
|
103
103
|
end
|
|
104
104
|
else
|
|
105
|
-
request_params = {
|
|
105
|
+
request_params = {head: "#{owner}:#{head}"}
|
|
106
106
|
|
|
107
107
|
T.cast(
|
|
108
108
|
api_interface.send_request(api_path, params: request_params, multipage: true),
|
|
@@ -135,7 +135,7 @@ module Geet
|
|
|
135
135
|
}
|
|
136
136
|
def merge(merge_method: nil)
|
|
137
137
|
api_path = "pulls/#{number}/merge"
|
|
138
|
-
request_data = {
|
|
138
|
+
request_data = {merge_method:} if merge_method
|
|
139
139
|
|
|
140
140
|
@api_interface.send_request(api_path, http_method: :put, data: request_data)
|
|
141
141
|
end
|
|
@@ -147,7 +147,7 @@ module Geet
|
|
|
147
147
|
}
|
|
148
148
|
def request_review(reviewers)
|
|
149
149
|
api_path = "pulls/#{number}/requested_reviewers"
|
|
150
|
-
request_data = {
|
|
150
|
+
request_data = {reviewers:}
|
|
151
151
|
|
|
152
152
|
@api_interface.send_request(api_path, data: request_data)
|
|
153
153
|
end
|
|
@@ -175,7 +175,7 @@ module Geet
|
|
|
175
175
|
}
|
|
176
176
|
GRAPHQL
|
|
177
177
|
|
|
178
|
-
variables = {
|
|
178
|
+
variables = {pullRequestId: @node_id, mergeMethod: merge_method}
|
|
179
179
|
|
|
180
180
|
@api_interface.send_graphql_request(query, variables:)
|
|
181
181
|
|
data/lib/geet/gitlab/label.rb
CHANGED
|
@@ -55,7 +55,7 @@ module Geet
|
|
|
55
55
|
}
|
|
56
56
|
def self.create(name, color, api_interface)
|
|
57
57
|
api_path = "projects/#{api_interface.path_with_namespace(encoded: true)}/labels"
|
|
58
|
-
request_data = {
|
|
58
|
+
request_data = {name:, color: "##{color}"}
|
|
59
59
|
|
|
60
60
|
api_interface.send_request(api_path, data: request_data)
|
|
61
61
|
|
data/lib/geet/gitlab/pr.rb
CHANGED
|
@@ -72,7 +72,7 @@ module Geet
|
|
|
72
72
|
sig { params(comment: String).void }
|
|
73
73
|
def comment(comment)
|
|
74
74
|
api_path = "projects/#{@api_interface.path_with_namespace(encoded: true)}/merge_requests/#{number}/notes"
|
|
75
|
-
request_data = {
|
|
75
|
+
request_data = {body: comment}
|
|
76
76
|
|
|
77
77
|
@api_interface.send_request(api_path, data: request_data)
|
|
78
78
|
end
|
|
@@ -62,7 +62,7 @@ module Geet
|
|
|
62
62
|
).returns([
|
|
63
63
|
T.nilable(T::Array[T.any(Github::Label, Gitlab::Label)]),
|
|
64
64
|
T.nilable(T.any(Github::Milestone, Gitlab::Milestone)),
|
|
65
|
-
T.nilable(T::Array[T.any(Github::User, Gitlab::User)])
|
|
65
|
+
T.nilable(T::Array[T.any(Github::User, Gitlab::User)]),
|
|
66
66
|
])
|
|
67
67
|
}
|
|
68
68
|
def find_and_select_attributes(labels, milestone, assignees)
|
data/lib/geet/version.rb
CHANGED
data/spec/unit/github/pr_spec.rb
CHANGED
|
@@ -30,14 +30,14 @@ describe Geet::Github::PR do
|
|
|
30
30
|
'rebaseMergeAllowed' => true,
|
|
31
31
|
'pullRequest' => {
|
|
32
32
|
'commits' => {
|
|
33
|
-
'totalCount' => 1
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
33
|
+
'totalCount' => 1,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
expect(api_interface).to receive(:send_graphql_request)
|
|
40
|
-
.with(anything, variables: {
|
|
40
|
+
.with(anything, variables: {owner: 'owner', name: 'repo', number: pr_number})
|
|
41
41
|
.and_return(graphql_response)
|
|
42
42
|
|
|
43
43
|
result = subject.send(:fetch_available_merge_method)
|
|
@@ -54,14 +54,14 @@ describe Geet::Github::PR do
|
|
|
54
54
|
'rebaseMergeAllowed' => true,
|
|
55
55
|
'pullRequest' => {
|
|
56
56
|
'commits' => {
|
|
57
|
-
'totalCount' => 1
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
57
|
+
'totalCount' => 1,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
expect(api_interface).to receive(:send_graphql_request)
|
|
64
|
-
.with(anything, variables: {
|
|
64
|
+
.with(anything, variables: {owner: 'owner', name: 'repo', number: pr_number})
|
|
65
65
|
.and_return(graphql_response)
|
|
66
66
|
|
|
67
67
|
result = subject.send(:fetch_available_merge_method)
|
|
@@ -78,14 +78,14 @@ describe Geet::Github::PR do
|
|
|
78
78
|
'rebaseMergeAllowed' => true,
|
|
79
79
|
'pullRequest' => {
|
|
80
80
|
'commits' => {
|
|
81
|
-
'totalCount' => 3
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
81
|
+
'totalCount' => 3,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
expect(api_interface).to receive(:send_graphql_request)
|
|
88
|
-
.with(anything, variables: {
|
|
88
|
+
.with(anything, variables: {owner: 'owner', name: 'repo', number: pr_number})
|
|
89
89
|
.and_return(graphql_response)
|
|
90
90
|
|
|
91
91
|
result = subject.send(:fetch_available_merge_method)
|
|
@@ -102,14 +102,14 @@ describe Geet::Github::PR do
|
|
|
102
102
|
'rebaseMergeAllowed' => true,
|
|
103
103
|
'pullRequest' => {
|
|
104
104
|
'commits' => {
|
|
105
|
-
'totalCount' => 3
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
105
|
+
'totalCount' => 3,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
expect(api_interface).to receive(:send_graphql_request)
|
|
112
|
-
.with(anything, variables: {
|
|
112
|
+
.with(anything, variables: {owner: 'owner', name: 'repo', number: pr_number})
|
|
113
113
|
.and_return(graphql_response)
|
|
114
114
|
|
|
115
115
|
result = subject.send(:fetch_available_merge_method)
|
|
@@ -124,14 +124,14 @@ describe Geet::Github::PR do
|
|
|
124
124
|
'rebaseMergeAllowed' => true,
|
|
125
125
|
'pullRequest' => {
|
|
126
126
|
'commits' => {
|
|
127
|
-
'totalCount' => 3
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
127
|
+
'totalCount' => 3,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
expect(api_interface).to receive(:send_graphql_request)
|
|
134
|
-
.with(anything, variables: {
|
|
134
|
+
.with(anything, variables: {owner: 'owner', name: 'repo', number: pr_number})
|
|
135
135
|
.and_return(graphql_response)
|
|
136
136
|
|
|
137
137
|
result = subject.send(:fetch_available_merge_method)
|
|
@@ -148,14 +148,14 @@ describe Geet::Github::PR do
|
|
|
148
148
|
'rebaseMergeAllowed' => false,
|
|
149
149
|
'pullRequest' => {
|
|
150
150
|
'commits' => {
|
|
151
|
-
'totalCount' => 3
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
151
|
+
'totalCount' => 3,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
expect(api_interface).to receive(:send_graphql_request)
|
|
158
|
-
.with(anything, variables: {
|
|
158
|
+
.with(anything, variables: {owner: 'owner', name: 'repo', number: pr_number})
|
|
159
159
|
.and_return(graphql_response)
|
|
160
160
|
|
|
161
161
|
expect { subject.send(:fetch_available_merge_method) }.to raise_error('No merge methods are allowed on this repository')
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.27.
|
|
4
|
+
version: 0.27.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Saverio Miroddi
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-01-
|
|
10
|
+
date: 2026-01-18 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|
|
@@ -121,7 +121,6 @@ files:
|
|
|
121
121
|
- ".gitignore"
|
|
122
122
|
- ".rspec"
|
|
123
123
|
- ".rubocop.yml"
|
|
124
|
-
- ".rubocop_todo.yml"
|
|
125
124
|
- ".ruby-version"
|
|
126
125
|
- Gemfile
|
|
127
126
|
- LICENSE
|
|
@@ -310,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
310
309
|
- !ruby/object:Gem::Version
|
|
311
310
|
version: '0'
|
|
312
311
|
requirements: []
|
|
313
|
-
rubygems_version: 3.6.
|
|
312
|
+
rubygems_version: 3.6.7
|
|
314
313
|
specification_version: 4
|
|
315
314
|
summary: Commandline interface for performing SCM host operations, eg. create a PR
|
|
316
315
|
on GitHub
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
NewCops: disable
|
|
3
|
-
|
|
4
|
-
Metrics/MethodLength:
|
|
5
|
-
Enabled: false
|
|
6
|
-
|
|
7
|
-
# Offense count: 20
|
|
8
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
9
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
|
|
10
|
-
# URISchemes: http, https
|
|
11
|
-
Layout/LineLength:
|
|
12
|
-
Enabled: false
|
|
13
|
-
|
|
14
|
-
# Offense count: 1
|
|
15
|
-
# Configuration parameters: Include.
|
|
16
|
-
# Include: **/*.gemspec
|
|
17
|
-
Gemspec/RequiredRubyVersion:
|
|
18
|
-
Exclude:
|
|
19
|
-
- 'geet.gemspec'
|
|
20
|
-
|
|
21
|
-
# Offense count: 1
|
|
22
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
23
|
-
Layout/ClosingParenthesisIndentation:
|
|
24
|
-
Exclude:
|
|
25
|
-
- 'lib/geet/services/create_issue.rb'
|
|
26
|
-
|
|
27
|
-
# Offense count: 8
|
|
28
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
29
|
-
# Configuration parameters: AllowForAlignment.
|
|
30
|
-
Layout/CommentIndentation:
|
|
31
|
-
Exclude:
|
|
32
|
-
- 'spec/integration/create_pr_spec.rb'
|
|
33
|
-
- 'spec/integration/merge_pr_spec.rb'
|
|
34
|
-
|
|
35
|
-
# Offense count: 2
|
|
36
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
37
|
-
Layout/ElseAlignment:
|
|
38
|
-
Exclude:
|
|
39
|
-
- 'lib/geet/github/pr.rb'
|
|
40
|
-
- 'lib/geet/helpers/services_workflow_helper.rb'
|
|
41
|
-
|
|
42
|
-
# Offense count: 1
|
|
43
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
44
|
-
Layout/EmptyLineAfterGuardClause:
|
|
45
|
-
Exclude:
|
|
46
|
-
- 'lib/geet/github/api_interface.rb'
|
|
47
|
-
|
|
48
|
-
# Offense count: 2
|
|
49
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
50
|
-
# Configuration parameters: EnforcedStyle.
|
|
51
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
|
52
|
-
Layout/EmptyLinesAroundBlockBody:
|
|
53
|
-
Exclude:
|
|
54
|
-
- 'spec/integration/list_issues_spec.rb'
|
|
55
|
-
- 'spec/integration/open_pr_spec.rb'
|
|
56
|
-
|
|
57
|
-
# Offense count: 2
|
|
58
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
59
|
-
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
|
60
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
61
|
-
Layout/EndAlignment:
|
|
62
|
-
Exclude:
|
|
63
|
-
- 'lib/geet/github/pr.rb'
|
|
64
|
-
- 'lib/geet/helpers/services_workflow_helper.rb'
|
|
65
|
-
|
|
66
|
-
# Offense count: 2
|
|
67
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
68
|
-
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
69
|
-
Layout/ExtraSpacing:
|
|
70
|
-
Exclude:
|
|
71
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
72
|
-
|
|
73
|
-
# Offense count: 1
|
|
74
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
75
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
76
|
-
# SupportedStyles: consistent, align_parentheses
|
|
77
|
-
Layout/FirstParameterIndentation:
|
|
78
|
-
Exclude:
|
|
79
|
-
- 'lib/geet/services/create_issue.rb'
|
|
80
|
-
|
|
81
|
-
# Offense count: 2
|
|
82
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
83
|
-
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
|
|
84
|
-
Layout/IndentationWidth:
|
|
85
|
-
Exclude:
|
|
86
|
-
- 'lib/geet/github/pr.rb'
|
|
87
|
-
- 'lib/geet/helpers/services_workflow_helper.rb'
|
|
88
|
-
|
|
89
|
-
# Offense count: 3
|
|
90
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
91
|
-
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
|
92
|
-
# SupportedStylesForExponentOperator: space, no_space
|
|
93
|
-
Layout/SpaceAroundOperators:
|
|
94
|
-
Exclude:
|
|
95
|
-
- 'geet.gemspec'
|
|
96
|
-
- 'lib/geet/helpers/os_helper.rb'
|
|
97
|
-
|
|
98
|
-
# Offense count: 10
|
|
99
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
100
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
101
|
-
# SupportedStyles: space, no_space, compact
|
|
102
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
103
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
104
|
-
Exclude:
|
|
105
|
-
- 'bin/geet'
|
|
106
|
-
- 'lib/geet/services/open_repo.rb'
|
|
107
|
-
- 'lib/geet/utils/git_client.rb'
|
|
108
|
-
- 'lib/geet/utils/manual_list_selection.rb'
|
|
109
|
-
- 'spec/spec_helper.rb'
|
|
110
|
-
|
|
111
|
-
# Offense count: 3
|
|
112
|
-
# Configuration parameters: AllowedMethods.
|
|
113
|
-
# AllowedMethods: enums
|
|
114
|
-
Lint/ConstantDefinitionInBlock:
|
|
115
|
-
Exclude:
|
|
116
|
-
- 'spec/integration/open_repo_spec.rb'
|
|
117
|
-
|
|
118
|
-
# Offense count: 1
|
|
119
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
120
|
-
Lint/DeprecatedClassMethods:
|
|
121
|
-
Exclude:
|
|
122
|
-
- 'bin/geet'
|
|
123
|
-
|
|
124
|
-
# Offense count: 1
|
|
125
|
-
# Configuration parameters: AllowComments.
|
|
126
|
-
Lint/EmptyWhen:
|
|
127
|
-
Exclude:
|
|
128
|
-
- 'lib/geet/services/open_repo.rb'
|
|
129
|
-
|
|
130
|
-
# Offense count: 1
|
|
131
|
-
# Configuration parameters: MaximumRangeSize.
|
|
132
|
-
Lint/MissingCopEnableDirective:
|
|
133
|
-
Exclude:
|
|
134
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
135
|
-
|
|
136
|
-
# Offense count: 2
|
|
137
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
138
|
-
Lint/NonDeterministicRequireOrder:
|
|
139
|
-
Exclude:
|
|
140
|
-
- 'bin/geet'
|
|
141
|
-
- 'lib/geet/git/repository.rb'
|
|
142
|
-
|
|
143
|
-
# Offense count: 1
|
|
144
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
145
|
-
Lint/RedundantCopDisableDirective:
|
|
146
|
-
Exclude:
|
|
147
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
148
|
-
|
|
149
|
-
# Offense count: 2
|
|
150
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
151
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
152
|
-
Lint/UnusedBlockArgument:
|
|
153
|
-
Exclude:
|
|
154
|
-
- 'lib/geet/gitlab/issue.rb'
|
|
155
|
-
- 'lib/geet/gitlab/pr.rb'
|
|
156
|
-
|
|
157
|
-
# Offense count: 2
|
|
158
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
159
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
160
|
-
Lint/UnusedMethodArgument:
|
|
161
|
-
Exclude:
|
|
162
|
-
- 'lib/geet/services/open_pr.rb'
|
|
163
|
-
- 'lib/geet/utils/git_client.rb'
|
|
164
|
-
|
|
165
|
-
# Offense count: 1
|
|
166
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
167
|
-
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
|
168
|
-
Lint/UselessAccessModifier:
|
|
169
|
-
Exclude:
|
|
170
|
-
- 'lib/geet/github/milestone.rb'
|
|
171
|
-
|
|
172
|
-
# Offense count: 1
|
|
173
|
-
Lint/UselessAssignment:
|
|
174
|
-
Exclude:
|
|
175
|
-
- 'lib/geet/services/create_issue.rb'
|
|
176
|
-
|
|
177
|
-
# Offense count: 10
|
|
178
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
|
179
|
-
Metrics/AbcSize:
|
|
180
|
-
Max: 65
|
|
181
|
-
|
|
182
|
-
# Offense count: 18
|
|
183
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
|
184
|
-
# AllowedMethods: refine
|
|
185
|
-
Metrics/BlockLength:
|
|
186
|
-
Max: 88
|
|
187
|
-
|
|
188
|
-
# Offense count: 1
|
|
189
|
-
# Configuration parameters: CountBlocks.
|
|
190
|
-
Metrics/BlockNesting:
|
|
191
|
-
Max: 4
|
|
192
|
-
|
|
193
|
-
# Offense count: 4
|
|
194
|
-
# Configuration parameters: CountComments, CountAsOne.
|
|
195
|
-
Metrics/ClassLength:
|
|
196
|
-
Max: 126
|
|
197
|
-
|
|
198
|
-
# Offense count: 6
|
|
199
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
|
200
|
-
Metrics/CyclomaticComplexity:
|
|
201
|
-
Max: 20
|
|
202
|
-
|
|
203
|
-
# Offense count: 4
|
|
204
|
-
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
|
205
|
-
Metrics/ParameterLists:
|
|
206
|
-
Max: 9
|
|
207
|
-
|
|
208
|
-
# Offense count: 4
|
|
209
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
|
210
|
-
Metrics/PerceivedComplexity:
|
|
211
|
-
Max: 12
|
|
212
|
-
|
|
213
|
-
# Offense count: 5
|
|
214
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
215
|
-
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
|
216
|
-
Naming/MethodParameterName:
|
|
217
|
-
Exclude:
|
|
218
|
-
- 'lib/geet/services/create_pr.rb'
|
|
219
|
-
- 'lib/geet/services/merge_pr.rb'
|
|
220
|
-
|
|
221
|
-
# Offense count: 2
|
|
222
|
-
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
|
223
|
-
# NamePrefix: is_, has_, have_
|
|
224
|
-
# ForbiddenPrefixes: is_, has_, have_
|
|
225
|
-
# AllowedMethods: is_a?
|
|
226
|
-
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
227
|
-
Naming/PredicateName:
|
|
228
|
-
Exclude:
|
|
229
|
-
- 'spec/**/*'
|
|
230
|
-
- 'lib/geet/github/user.rb'
|
|
231
|
-
|
|
232
|
-
# Offense count: 1
|
|
233
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
234
|
-
# Configuration parameters: PreferredName.
|
|
235
|
-
Naming/RescuedExceptionsVariableName:
|
|
236
|
-
Exclude:
|
|
237
|
-
- 'lib/geet/github/user.rb'
|
|
238
|
-
|
|
239
|
-
# Offense count: 1
|
|
240
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
241
|
-
Style/BlockComments:
|
|
242
|
-
Exclude:
|
|
243
|
-
- 'spec/spec_helper.rb'
|
|
244
|
-
|
|
245
|
-
# Offense count: 34
|
|
246
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
247
|
-
Style/CommentedKeyword:
|
|
248
|
-
Enabled: false
|
|
249
|
-
|
|
250
|
-
# Offense count: 38
|
|
251
|
-
# Configuration parameters: AllowedConstants.
|
|
252
|
-
Style/Documentation:
|
|
253
|
-
Enabled: false
|
|
254
|
-
|
|
255
|
-
# Offense count: 1
|
|
256
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
257
|
-
# Configuration parameters: EnforcedStyle.
|
|
258
|
-
# SupportedStyles: allowed_in_returns, forbidden
|
|
259
|
-
Style/DoubleNegation:
|
|
260
|
-
Exclude:
|
|
261
|
-
- 'bin/geet'
|
|
262
|
-
|
|
263
|
-
# Offense count: 1
|
|
264
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
265
|
-
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
266
|
-
# SupportedStyles: empty, nil, both
|
|
267
|
-
Style/EmptyElse:
|
|
268
|
-
Exclude:
|
|
269
|
-
- 'lib/geet/utils/git_client.rb'
|
|
270
|
-
|
|
271
|
-
# Offense count: 2
|
|
272
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
273
|
-
# Configuration parameters: EnforcedStyle.
|
|
274
|
-
# SupportedStyles: always, always_true, never
|
|
275
|
-
Style/FrozenStringLiteralComment:
|
|
276
|
-
Exclude:
|
|
277
|
-
- 'Rakefile'
|
|
278
|
-
- 'lib/geet/shared/http_error.rb'
|
|
279
|
-
|
|
280
|
-
# Offense count: 6
|
|
281
|
-
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
282
|
-
Style/GuardClause:
|
|
283
|
-
Exclude:
|
|
284
|
-
- 'lib/geet/git/repository.rb'
|
|
285
|
-
- 'lib/geet/github/pr.rb'
|
|
286
|
-
- 'lib/geet/gitlab/pr.rb'
|
|
287
|
-
- 'lib/geet/utils/git_client.rb'
|
|
288
|
-
|
|
289
|
-
# Offense count: 7
|
|
290
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
291
|
-
# Configuration parameters: EnforcedStyle.
|
|
292
|
-
# SupportedStyles: braces, no_braces
|
|
293
|
-
Style/HashAsLastArrayItem:
|
|
294
|
-
Exclude:
|
|
295
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
296
|
-
|
|
297
|
-
# Offense count: 8
|
|
298
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
299
|
-
Style/IfUnlessModifier:
|
|
300
|
-
Exclude:
|
|
301
|
-
- 'lib/geet/git/repository.rb'
|
|
302
|
-
- 'lib/geet/github/pr.rb'
|
|
303
|
-
- 'lib/geet/gitlab/pr.rb'
|
|
304
|
-
- 'lib/geet/helpers/os_helper.rb'
|
|
305
|
-
- 'lib/geet/services/create_issue.rb'
|
|
306
|
-
- 'lib/geet/services/create_pr.rb'
|
|
307
|
-
|
|
308
|
-
# Offense count: 1
|
|
309
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
310
|
-
Style/InfiniteLoop:
|
|
311
|
-
Exclude:
|
|
312
|
-
- 'lib/geet/services/create_pr.rb'
|
|
313
|
-
|
|
314
|
-
# Offense count: 1
|
|
315
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
316
|
-
# Configuration parameters: EnforcedStyle.
|
|
317
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
|
318
|
-
Style/Lambda:
|
|
319
|
-
Exclude:
|
|
320
|
-
- 'spec/integration/create_pr_spec.rb'
|
|
321
|
-
|
|
322
|
-
# Offense count: 1
|
|
323
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
324
|
-
# Configuration parameters: EnforcedStyle.
|
|
325
|
-
# SupportedStyles: call, braces
|
|
326
|
-
Style/LambdaCall:
|
|
327
|
-
Exclude:
|
|
328
|
-
- 'lib/geet/utils/attributes_selection_manager.rb'
|
|
329
|
-
|
|
330
|
-
# Offense count: 1
|
|
331
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
332
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
|
333
|
-
Style/MethodCallWithoutArgsParentheses:
|
|
334
|
-
Exclude:
|
|
335
|
-
- 'lib/geet/utils/git_client.rb'
|
|
336
|
-
|
|
337
|
-
# Offense count: 5
|
|
338
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
339
|
-
# Configuration parameters: EnforcedStyle.
|
|
340
|
-
# SupportedStyles: literals, strict
|
|
341
|
-
Style/MutableConstant:
|
|
342
|
-
Exclude:
|
|
343
|
-
- 'lib/geet/shared/repo_permissions.rb'
|
|
344
|
-
- 'lib/geet/utils/git_client.rb'
|
|
345
|
-
- 'spec/integration/open_repo_spec.rb'
|
|
346
|
-
|
|
347
|
-
# Offense count: 10
|
|
348
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
349
|
-
# Configuration parameters: EnforcedStyle.
|
|
350
|
-
# SupportedStyles: both, prefix, postfix
|
|
351
|
-
Style/NegatedIf:
|
|
352
|
-
Exclude:
|
|
353
|
-
- 'lib/geet/git/repository.rb'
|
|
354
|
-
- 'lib/geet/github/api_interface.rb'
|
|
355
|
-
- 'lib/geet/github/user.rb'
|
|
356
|
-
- 'lib/geet/gitlab/api_interface.rb'
|
|
357
|
-
- 'lib/geet/gitlab/pr.rb'
|
|
358
|
-
- 'lib/geet/services/create_issue.rb'
|
|
359
|
-
- 'lib/geet/services/create_pr.rb'
|
|
360
|
-
- 'lib/geet/utils/attributes_selection_manager.rb'
|
|
361
|
-
|
|
362
|
-
# Offense count: 1
|
|
363
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
364
|
-
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
|
365
|
-
Style/NumericLiterals:
|
|
366
|
-
MinDigits: 6
|
|
367
|
-
|
|
368
|
-
# Offense count: 1
|
|
369
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
370
|
-
# Configuration parameters: PreferredDelimiters.
|
|
371
|
-
Style/PercentLiteralDelimiters:
|
|
372
|
-
Exclude:
|
|
373
|
-
- 'lib/geet/utils/git_client.rb'
|
|
374
|
-
|
|
375
|
-
# Offense count: 2
|
|
376
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
377
|
-
Style/RedundantFreeze:
|
|
378
|
-
Exclude:
|
|
379
|
-
- 'lib/geet/shared/selection.rb'
|
|
380
|
-
|
|
381
|
-
# Offense count: 1
|
|
382
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
383
|
-
Style/RedundantSelf:
|
|
384
|
-
Exclude:
|
|
385
|
-
- 'lib/geet/github/remote_repository.rb'
|
|
386
|
-
|
|
387
|
-
# Offense count: 1
|
|
388
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
389
|
-
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
390
|
-
# SupportedStyles: slashes, percent_r, mixed
|
|
391
|
-
Style/RegexpLiteral:
|
|
392
|
-
Exclude:
|
|
393
|
-
- 'lib/geet/utils/git_client.rb'
|
|
394
|
-
|
|
395
|
-
# Offense count: 1
|
|
396
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
397
|
-
Style/SlicingWithRange:
|
|
398
|
-
Exclude:
|
|
399
|
-
- 'lib/geet/utils/git_client.rb'
|
|
400
|
-
|
|
401
|
-
# Offense count: 3
|
|
402
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
403
|
-
# Configuration parameters: Mode.
|
|
404
|
-
Style/StringConcatenation:
|
|
405
|
-
Exclude:
|
|
406
|
-
- 'lib/geet/commandline/editor.rb'
|
|
407
|
-
- 'lib/geet/github/api_interface.rb'
|
|
408
|
-
- 'lib/geet/gitlab/api_interface.rb'
|
|
409
|
-
|
|
410
|
-
# Offense count: 22
|
|
411
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
412
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
413
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
414
|
-
Style/StringLiterals:
|
|
415
|
-
Exclude:
|
|
416
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
417
|
-
- 'lib/geet/git/repository.rb'
|
|
418
|
-
- 'lib/geet/github/remote_repository.rb'
|
|
419
|
-
- 'lib/geet/helpers/os_helper.rb'
|
|
420
|
-
- 'lib/geet/helpers/summary_helper.rb'
|
|
421
|
-
- 'lib/geet/services/add_upstream_repo.rb'
|
|
422
|
-
- 'lib/geet/services/create_pr.rb'
|
|
423
|
-
- 'lib/geet/services/merge_pr.rb'
|
|
424
|
-
- 'lib/geet/utils/git_client.rb'
|
|
425
|
-
- 'spec/integration/open_repo_spec.rb'
|
|
426
|
-
|
|
427
|
-
# Offense count: 1
|
|
428
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
429
|
-
# Configuration parameters: EnforcedStyle.
|
|
430
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
431
|
-
Style/StringLiteralsInInterpolation:
|
|
432
|
-
Exclude:
|
|
433
|
-
- 'lib/geet/utils/git_client.rb'
|
|
434
|
-
|
|
435
|
-
# Offense count: 1
|
|
436
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
437
|
-
# Configuration parameters: MinSize.
|
|
438
|
-
# SupportedStyles: percent, brackets
|
|
439
|
-
Style/SymbolArray:
|
|
440
|
-
EnforcedStyle: brackets
|
|
441
|
-
|
|
442
|
-
# Offense count: 1
|
|
443
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
444
|
-
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
445
|
-
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
446
|
-
Style/TernaryParentheses:
|
|
447
|
-
Exclude:
|
|
448
|
-
- 'lib/geet/github/user.rb'
|
|
449
|
-
|
|
450
|
-
# Offense count: 6
|
|
451
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
452
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
453
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
454
|
-
Style/TrailingCommaInArrayLiteral:
|
|
455
|
-
Exclude:
|
|
456
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
457
|
-
- 'lib/geet/shared/repo_permissions.rb'
|
|
458
|
-
|
|
459
|
-
# Offense count: 8
|
|
460
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
461
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
462
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
463
|
-
Style/TrailingCommaInHashLiteral:
|
|
464
|
-
Exclude:
|
|
465
|
-
- 'lib/geet/commandline/configuration.rb'
|
|
466
|
-
- 'spec/integration/open_repo_spec.rb'
|