git_helper 3.6.4 → 3.6.6
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/Gemfile.lock +12 -12
- data/lib/git_helper/code_request.rb +2 -2
- data/lib/git_helper/local_code.rb +2 -2
- data/lib/git_helper/merge_request.rb +3 -3
- data/lib/git_helper/pull_request.rb +1 -1
- data/lib/git_helper/setup.rb +1 -1
- data/lib/git_helper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 787737eda759eb8586dfc74869c4d3aa37d983c886d39ea5bdc6cbd84aec1c3c
|
4
|
+
data.tar.gz: 1620a4c05ab9e1d22faddbf35f3399873ee2fa331a9e432e15c60c055f8a5d0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fed4f42c02f1868d01f814b2a688063a0c0d5ea133db7a89ae480fb0f4534f6101e788e54fef1ea2284726b846cfb52ab18d2d6fa58dd5dd5b993a646b415099
|
7
|
+
data.tar.gz: f578749f192739180569eba8725dab7f853eef9e150f903e87716ab94443333a493272c286b24fdd87ee82b4946a9184b79397548c9b0fca0af027080775f739
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_helper (3.6.
|
4
|
+
git_helper (3.6.5)
|
5
5
|
gli (~> 2.13)
|
6
6
|
highline_wrapper (~> 1.1)
|
7
7
|
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
coderay (1.1.3)
|
13
13
|
concurrent-ruby (1.2.2)
|
14
14
|
diff-lcs (1.5.0)
|
15
|
-
faker (3.
|
15
|
+
faker (3.2.0)
|
16
16
|
i18n (>= 1.8.11, < 2)
|
17
17
|
ffi (1.15.5)
|
18
18
|
formatador (1.1.0)
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
highline (2.1.0)
|
35
35
|
highline_wrapper (1.3.1)
|
36
36
|
highline (~> 2.0)
|
37
|
-
i18n (1.
|
37
|
+
i18n (1.13.0)
|
38
38
|
concurrent-ruby (~> 1.0)
|
39
39
|
json (2.6.3)
|
40
40
|
listen (3.8.0)
|
@@ -46,8 +46,8 @@ GEM
|
|
46
46
|
notiffany (0.1.3)
|
47
47
|
nenv (~> 0.1)
|
48
48
|
shellany (~> 0.0)
|
49
|
-
parallel (1.
|
50
|
-
parser (3.2.
|
49
|
+
parallel (1.23.0)
|
50
|
+
parser (3.2.2.1)
|
51
51
|
ast (~> 2.4.1)
|
52
52
|
pry (0.14.2)
|
53
53
|
coderay (~> 1.1)
|
@@ -56,32 +56,32 @@ GEM
|
|
56
56
|
rb-fsevent (0.11.2)
|
57
57
|
rb-inotify (0.10.1)
|
58
58
|
ffi (~> 1.0)
|
59
|
-
regexp_parser (2.
|
59
|
+
regexp_parser (2.8.0)
|
60
60
|
rexml (3.2.5)
|
61
61
|
rspec (3.12.0)
|
62
62
|
rspec-core (~> 3.12.0)
|
63
63
|
rspec-expectations (~> 3.12.0)
|
64
64
|
rspec-mocks (~> 3.12.0)
|
65
|
-
rspec-core (3.12.
|
65
|
+
rspec-core (3.12.2)
|
66
66
|
rspec-support (~> 3.12.0)
|
67
|
-
rspec-expectations (3.12.
|
67
|
+
rspec-expectations (3.12.3)
|
68
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
69
|
rspec-support (~> 3.12.0)
|
70
|
-
rspec-mocks (3.12.
|
70
|
+
rspec-mocks (3.12.5)
|
71
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
72
|
rspec-support (~> 3.12.0)
|
73
73
|
rspec-support (3.12.0)
|
74
|
-
rubocop (1.
|
74
|
+
rubocop (1.50.2)
|
75
75
|
json (~> 2.3)
|
76
76
|
parallel (~> 1.10)
|
77
77
|
parser (>= 3.2.0.0)
|
78
78
|
rainbow (>= 2.2.2, < 4.0)
|
79
79
|
regexp_parser (>= 1.8, < 3.0)
|
80
80
|
rexml (>= 3.2.5, < 4.0)
|
81
|
-
rubocop-ast (>= 1.
|
81
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
82
82
|
ruby-progressbar (~> 1.7)
|
83
83
|
unicode-display_width (>= 2.4.0, < 3.0)
|
84
|
-
rubocop-ast (1.
|
84
|
+
rubocop-ast (1.28.1)
|
85
85
|
parser (>= 3.2.1.0)
|
86
86
|
ruby-progressbar (1.13.0)
|
87
87
|
shellany (0.0.1)
|
@@ -73,7 +73,7 @@ module GitHelper
|
|
73
73
|
|
74
74
|
private def base_branch
|
75
75
|
@base_branch ||=
|
76
|
-
if highline.ask_yes_no("Is '#{default_branch}' the correct base branch for your new code request? (
|
76
|
+
if highline.ask_yes_no("Is '#{default_branch}' the correct base branch for your new code request? (Y/n)")
|
77
77
|
default_branch
|
78
78
|
else
|
79
79
|
highline.ask('Base branch?', { required: true })
|
@@ -91,7 +91,7 @@ module GitHelper
|
|
91
91
|
private def new_code_request_title
|
92
92
|
@new_code_request_title ||=
|
93
93
|
if autogenerated_title && highline.ask_yes_no(
|
94
|
-
"Accept the autogenerated code request title '#{autogenerated_title}'? (
|
94
|
+
"Accept the autogenerated code request title '#{autogenerated_title}'? (Y/n)"
|
95
95
|
)
|
96
96
|
autogenerated_title
|
97
97
|
else
|
@@ -66,11 +66,11 @@ module GitHelper
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def github_repo?
|
69
|
-
remotes.
|
69
|
+
remotes.any? { |remote| remote.include?('github') }
|
70
70
|
end
|
71
71
|
|
72
72
|
def gitlab_project?
|
73
|
-
remotes.
|
73
|
+
remotes.any? { |remote| remote.include?('gitlab') }
|
74
74
|
end
|
75
75
|
|
76
76
|
def project_name
|
@@ -96,7 +96,7 @@ module GitHelper
|
|
96
96
|
private def determine_template
|
97
97
|
if mr_template_options.count == 1
|
98
98
|
apply_single_template = highline.ask_yes_no(
|
99
|
-
"Apply the merge request template from #{mr_template_options.first}? (
|
99
|
+
"Apply the merge request template from #{mr_template_options.first}? (Y/n)"
|
100
100
|
)
|
101
101
|
@template_name_to_apply = mr_template_options.first if apply_single_template
|
102
102
|
else
|
@@ -132,14 +132,14 @@ module GitHelper
|
|
132
132
|
when 'never'
|
133
133
|
false
|
134
134
|
else # 'default_off' or anything else
|
135
|
-
highline.ask_yes_no('Squash merge request? (
|
135
|
+
highline.ask_yes_no('Squash merge request? (Y/n)')
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
139
|
private def remove_source_branch
|
140
140
|
@remove_source_branch ||=
|
141
141
|
existing_project.remove_source_branch_after_merge || highline.ask_yes_no(
|
142
|
-
'Remove source branch after merging? (
|
142
|
+
'Remove source branch after merging? (Y/n)'
|
143
143
|
)
|
144
144
|
end
|
145
145
|
|
@@ -90,7 +90,7 @@ module GitHelper
|
|
90
90
|
private def determine_template
|
91
91
|
if pr_template_options.count == 1
|
92
92
|
apply_single_template = highline.ask_yes_no(
|
93
|
-
"Apply the pull request template from #{pr_template_options.first}? (
|
93
|
+
"Apply the pull request template from #{pr_template_options.first}? (Y/n)"
|
94
94
|
)
|
95
95
|
@template_name_to_apply = pr_template_options.first if apply_single_template
|
96
96
|
else
|
data/lib/git_helper/setup.rb
CHANGED
@@ -91,7 +91,7 @@ module GitHelper
|
|
91
91
|
|
92
92
|
all_plugins.each do |plugin|
|
93
93
|
plugin_content = `curl -s -H "#{header}" -L "#{plugins_url}/#{plugin['name']}"`
|
94
|
-
File.open("#{plugins_dir}/#{plugin['name']}", 'w') { |file| file.puts plugin_content }
|
94
|
+
File.open("#{plugins_dir}/#{plugin['name']}", 'w', 0o755) { |file| file.puts plugin_content }
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
data/lib/git_helper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emma Sax
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
|
-
rubygems_version: 3.4.
|
177
|
+
rubygems_version: 3.4.12
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: A set of GitHub and GitLab workflow scripts
|