gitlab-dangerfiles 4.5.1 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.gitlab-ci.yml +9 -16
- data/.rubocop.yml +3 -0
- data/Gemfile.lock +231 -0
- data/gitlab-dangerfiles.gemspec +1 -1
- data/lib/danger/plugins/internal/helper.rb +4 -4
- data/lib/danger/plugins/roulette.rb +34 -267
- data/lib/danger/rules/commit_messages/Dangerfile +1 -1
- data/lib/danger/rules/z_add_labels/Dangerfile +1 -1
- data/lib/gitlab/dangerfiles/approval.rb +22 -0
- data/lib/gitlab/dangerfiles/capability.rb +84 -0
- data/lib/gitlab/dangerfiles/spec_helper.rb +230 -0
- data/lib/gitlab/dangerfiles/spin.rb +15 -0
- data/lib/gitlab/dangerfiles/spinner.rb +190 -0
- data/lib/gitlab/dangerfiles/teammate.rb +88 -2
- data/lib/gitlab/dangerfiles/version.rb +1 -1
- metadata +9 -5
- data/lib/gitlab/dangerfiles/category.rb +0 -111
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3462c1433faf49899f1472e4411ce488ada1b6f59da331ede45114703fe2dfa
|
4
|
+
data.tar.gz: 37b7134a0cec36afed2dc1a4d78321cf9c9a80a405c5551fe52b2ce4834fd312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a7d44496574a8336bd42665f3c096e4b5c4bb7eeb322533b0b0a84d901d541104878fa13ab214a80fecea15c5c875ad4cb6f98d751b290b8f00108d2d837816
|
7
|
+
data.tar.gz: c032a92c6fb18de185e1552faabc9b648573ff95ee1d0b5e88fe3f57c7668e502d251cb51f2bd9e4b36d555c147cb9f538f6904223546b3e4fbbb5591d9826b5
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
@@ -2,9 +2,6 @@ stages:
|
|
2
2
|
- test
|
3
3
|
- deploy
|
4
4
|
|
5
|
-
variables:
|
6
|
-
DEFAULT_CI_IMAGE: "ruby:${RUBY_VERSION}"
|
7
|
-
|
8
5
|
workflow:
|
9
6
|
rules:
|
10
7
|
# For merge requests, create a pipeline.
|
@@ -15,12 +12,8 @@ workflow:
|
|
15
12
|
- if: '$CI_COMMIT_TAG'
|
16
13
|
|
17
14
|
default:
|
18
|
-
image: "${DEFAULT_CI_IMAGE}"
|
19
15
|
tags:
|
20
16
|
- gitlab-org
|
21
|
-
before_script:
|
22
|
-
- gem install bundler
|
23
|
-
- bundle install -j $(nproc) --path vendor
|
24
17
|
cache:
|
25
18
|
key:
|
26
19
|
files:
|
@@ -28,12 +21,14 @@ default:
|
|
28
21
|
- gitlab-dangerfiles.gemspec
|
29
22
|
paths:
|
30
23
|
- vendor/ruby
|
31
|
-
- Gemfile.lock
|
32
|
-
policy: pull
|
33
24
|
|
34
25
|
.default-test-job:
|
26
|
+
image: "ruby:${RUBY_VERSION}"
|
35
27
|
stage: test
|
36
28
|
needs: []
|
29
|
+
before_script:
|
30
|
+
- gem install bundler
|
31
|
+
- bundle install -j $(nproc) --path vendor
|
37
32
|
parallel:
|
38
33
|
matrix:
|
39
34
|
- RUBY_VERSION: ['3.0', '3.1', '3.2']
|
@@ -49,15 +44,13 @@ test:rubocop:
|
|
49
44
|
- bundle exec rubocop -P -E .
|
50
45
|
|
51
46
|
include:
|
52
|
-
-
|
53
|
-
-
|
54
|
-
-
|
55
|
-
- project: 'gitlab-org/quality/pipeline-common'
|
56
|
-
file:
|
57
|
-
- '/ci/danger-review.yml'
|
58
|
-
- component: "gitlab.com/gitlab-org/quality/pipeline-common/gem-release@7.6.1"
|
47
|
+
- component: gitlab.com/components/sast/sast@~latest
|
48
|
+
- component: gitlab.com/components/secret-detection/secret-detection@~latest
|
49
|
+
- component: gitlab.com/gitlab-org/components/gem-release/gem-release@~latest
|
59
50
|
inputs:
|
60
51
|
smoke_test_script: "ruby -r 'gitlab-dangerfiles' -e \"puts Gitlab::Dangerfiles::VERSION\""
|
52
|
+
- component: gitlab.com/gitlab-org/components/danger-review/danger-review@~latest
|
53
|
+
- template: Security/Dependency-Scanning.gitlab-ci.yml
|
61
54
|
|
62
55
|
# run security jobs on MRs
|
63
56
|
# see: https://gitlab.com/gitlab-org/gitlab/-/issues/218444#note_478761991
|
data/.rubocop.yml
CHANGED
@@ -28,6 +28,9 @@ RSpec/FilePath:
|
|
28
28
|
RSpec/SpecFilePathFormat:
|
29
29
|
Enabled: false
|
30
30
|
|
31
|
+
Style/ArrayIntersect:
|
32
|
+
Enabled: false # We're still supporting Ruby 3.1 and below
|
33
|
+
|
31
34
|
Style/HashSyntax:
|
32
35
|
EnforcedStyle: ruby19_no_mixed_keys
|
33
36
|
# Introduced in Ruby 3.1. Disable for now.
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gitlab-dangerfiles (4.7.0)
|
5
|
+
danger (>= 9.3.0)
|
6
|
+
danger-gitlab (>= 8.0.0)
|
7
|
+
rake (~> 13.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
activesupport (7.0.4.2)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
addressable (2.8.1)
|
18
|
+
public_suffix (>= 2.0.2, < 6.0)
|
19
|
+
ast (2.4.2)
|
20
|
+
binding_of_caller (1.0.0)
|
21
|
+
debug_inspector (>= 0.0.1)
|
22
|
+
claide (1.1.0)
|
23
|
+
claide-plugins (0.9.2)
|
24
|
+
cork
|
25
|
+
nap
|
26
|
+
open4 (~> 1.3)
|
27
|
+
climate_control (1.2.0)
|
28
|
+
coderay (1.1.3)
|
29
|
+
colored2 (3.1.2)
|
30
|
+
concurrent-ruby (1.2.0)
|
31
|
+
cork (0.3.0)
|
32
|
+
colored2 (~> 3.1)
|
33
|
+
crack (0.4.5)
|
34
|
+
rexml
|
35
|
+
danger (9.3.0)
|
36
|
+
claide (~> 1.0)
|
37
|
+
claide-plugins (>= 0.9.2)
|
38
|
+
colored2 (~> 3.1)
|
39
|
+
cork (~> 0.1)
|
40
|
+
faraday (>= 0.9.0, < 3.0)
|
41
|
+
faraday-http-cache (~> 2.0)
|
42
|
+
git (~> 1.13.0)
|
43
|
+
kramdown (~> 2.3)
|
44
|
+
kramdown-parser-gfm (~> 1.0)
|
45
|
+
no_proxy_fix
|
46
|
+
octokit (~> 5.0)
|
47
|
+
terminal-table (>= 1, < 4)
|
48
|
+
danger-gitlab (8.0.0)
|
49
|
+
danger
|
50
|
+
gitlab (~> 4.2, >= 4.2.0)
|
51
|
+
debug_inspector (1.1.0)
|
52
|
+
diff-lcs (1.5.0)
|
53
|
+
faraday (2.7.10)
|
54
|
+
faraday-net_http (>= 2.0, < 3.1)
|
55
|
+
ruby2_keywords (>= 0.0.4)
|
56
|
+
faraday-http-cache (2.5.0)
|
57
|
+
faraday (>= 0.8)
|
58
|
+
faraday-net_http (3.0.2)
|
59
|
+
ffi (1.15.5)
|
60
|
+
formatador (1.1.0)
|
61
|
+
git (1.13.2)
|
62
|
+
addressable (~> 2.8)
|
63
|
+
rchardet (~> 1.8)
|
64
|
+
gitlab (4.19.0)
|
65
|
+
httparty (~> 0.20)
|
66
|
+
terminal-table (>= 1.5.1)
|
67
|
+
gitlab-styles (10.0.0)
|
68
|
+
rubocop (~> 1.43.0)
|
69
|
+
rubocop-graphql (~> 0.18)
|
70
|
+
rubocop-performance (~> 1.15)
|
71
|
+
rubocop-rails (~> 2.17)
|
72
|
+
rubocop-rspec (~> 2.18)
|
73
|
+
guard (2.18.0)
|
74
|
+
formatador (>= 0.2.4)
|
75
|
+
listen (>= 2.7, < 4.0)
|
76
|
+
lumberjack (>= 1.0.12, < 2.0)
|
77
|
+
nenv (~> 0.1)
|
78
|
+
notiffany (~> 0.0)
|
79
|
+
pry (>= 0.13.0)
|
80
|
+
shellany (~> 0.0)
|
81
|
+
thor (>= 0.18.1)
|
82
|
+
guard-compat (1.2.1)
|
83
|
+
guard-rspec (4.7.3)
|
84
|
+
guard (~> 2.1)
|
85
|
+
guard-compat (~> 1.1)
|
86
|
+
rspec (>= 2.99.0, < 4.0)
|
87
|
+
hashdiff (1.0.1)
|
88
|
+
httparty (0.21.0)
|
89
|
+
mini_mime (>= 1.0.0)
|
90
|
+
multi_xml (>= 0.5.2)
|
91
|
+
i18n (1.12.0)
|
92
|
+
concurrent-ruby (~> 1.0)
|
93
|
+
json (2.6.3)
|
94
|
+
kramdown (2.4.0)
|
95
|
+
rexml
|
96
|
+
kramdown-parser-gfm (1.1.0)
|
97
|
+
kramdown (~> 2.0)
|
98
|
+
lefthook (1.5.2)
|
99
|
+
listen (3.8.0)
|
100
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
101
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
102
|
+
lumberjack (1.2.8)
|
103
|
+
method_source (1.0.0)
|
104
|
+
mini_mime (1.1.2)
|
105
|
+
minitest (5.17.0)
|
106
|
+
multi_xml (0.6.0)
|
107
|
+
nap (1.1.0)
|
108
|
+
nenv (0.3.0)
|
109
|
+
no_proxy_fix (0.1.2)
|
110
|
+
notiffany (0.1.3)
|
111
|
+
nenv (~> 0.1)
|
112
|
+
shellany (~> 0.0)
|
113
|
+
octokit (5.6.1)
|
114
|
+
faraday (>= 1, < 3)
|
115
|
+
sawyer (~> 0.9)
|
116
|
+
open4 (1.3.4)
|
117
|
+
parallel (1.22.1)
|
118
|
+
parser (3.2.1.0)
|
119
|
+
ast (~> 2.4.1)
|
120
|
+
proc_to_ast (0.1.0)
|
121
|
+
coderay
|
122
|
+
parser
|
123
|
+
unparser
|
124
|
+
pry (0.14.2)
|
125
|
+
coderay (~> 1.1)
|
126
|
+
method_source (~> 1.0)
|
127
|
+
public_suffix (5.0.1)
|
128
|
+
rack (3.0.4.1)
|
129
|
+
rainbow (3.1.1)
|
130
|
+
rake (13.0.6)
|
131
|
+
rb-fsevent (0.11.2)
|
132
|
+
rb-inotify (0.10.1)
|
133
|
+
ffi (~> 1.0)
|
134
|
+
rchardet (1.8.0)
|
135
|
+
regexp_parser (2.7.0)
|
136
|
+
rexml (3.2.5)
|
137
|
+
rspec (3.12.0)
|
138
|
+
rspec-core (~> 3.12.0)
|
139
|
+
rspec-expectations (~> 3.12.0)
|
140
|
+
rspec-mocks (~> 3.12.0)
|
141
|
+
rspec-core (3.12.1)
|
142
|
+
rspec-support (~> 3.12.0)
|
143
|
+
rspec-expectations (3.12.2)
|
144
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
145
|
+
rspec-support (~> 3.12.0)
|
146
|
+
rspec-mocks (3.12.3)
|
147
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
148
|
+
rspec-support (~> 3.12.0)
|
149
|
+
rspec-parameterized (1.0.0)
|
150
|
+
rspec-parameterized-core (< 2)
|
151
|
+
rspec-parameterized-table_syntax (< 2)
|
152
|
+
rspec-parameterized-core (1.0.0)
|
153
|
+
parser
|
154
|
+
proc_to_ast
|
155
|
+
rspec (>= 2.13, < 4)
|
156
|
+
unparser
|
157
|
+
rspec-parameterized-table_syntax (1.0.0)
|
158
|
+
binding_of_caller
|
159
|
+
rspec-parameterized-core (< 2)
|
160
|
+
rspec-support (3.12.0)
|
161
|
+
rubocop (1.43.0)
|
162
|
+
json (~> 2.3)
|
163
|
+
parallel (~> 1.10)
|
164
|
+
parser (>= 3.2.0.0)
|
165
|
+
rainbow (>= 2.2.2, < 4.0)
|
166
|
+
regexp_parser (>= 1.8, < 3.0)
|
167
|
+
rexml (>= 3.2.5, < 4.0)
|
168
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
169
|
+
ruby-progressbar (~> 1.7)
|
170
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
171
|
+
rubocop-ast (1.26.0)
|
172
|
+
parser (>= 3.2.1.0)
|
173
|
+
rubocop-capybara (2.19.0)
|
174
|
+
rubocop (~> 1.41)
|
175
|
+
rubocop-factory_bot (2.24.0)
|
176
|
+
rubocop (~> 1.33)
|
177
|
+
rubocop-graphql (0.19.0)
|
178
|
+
rubocop (>= 0.87, < 2)
|
179
|
+
rubocop-performance (1.19.1)
|
180
|
+
rubocop (>= 1.7.0, < 2.0)
|
181
|
+
rubocop-ast (>= 0.4.0)
|
182
|
+
rubocop-rails (2.17.4)
|
183
|
+
activesupport (>= 4.2.0)
|
184
|
+
rack (>= 1.1)
|
185
|
+
rubocop (>= 1.33.0, < 2.0)
|
186
|
+
rubocop-rspec (2.24.1)
|
187
|
+
rubocop (~> 1.33)
|
188
|
+
rubocop-capybara (~> 2.17)
|
189
|
+
rubocop-factory_bot (~> 2.22)
|
190
|
+
ruby-progressbar (1.11.0)
|
191
|
+
ruby2_keywords (0.0.5)
|
192
|
+
sawyer (0.9.2)
|
193
|
+
addressable (>= 2.3.5)
|
194
|
+
faraday (>= 0.17.3, < 3)
|
195
|
+
shellany (0.0.1)
|
196
|
+
terminal-table (3.0.2)
|
197
|
+
unicode-display_width (>= 1.1.1, < 3)
|
198
|
+
thor (1.2.1)
|
199
|
+
timecop (0.9.6)
|
200
|
+
tzinfo (2.0.6)
|
201
|
+
concurrent-ruby (~> 1.0)
|
202
|
+
unicode-display_width (2.4.2)
|
203
|
+
unparser (0.6.7)
|
204
|
+
diff-lcs (~> 1.3)
|
205
|
+
parser (>= 3.2.0)
|
206
|
+
webmock (3.18.1)
|
207
|
+
addressable (>= 2.8.0)
|
208
|
+
crack (>= 0.3.2)
|
209
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
210
|
+
webrick (1.7.0)
|
211
|
+
yard (0.9.28)
|
212
|
+
webrick (~> 1.7.0)
|
213
|
+
|
214
|
+
PLATFORMS
|
215
|
+
ruby
|
216
|
+
|
217
|
+
DEPENDENCIES
|
218
|
+
climate_control
|
219
|
+
gitlab-dangerfiles!
|
220
|
+
gitlab-styles (~> 10.0)
|
221
|
+
guard-rspec (~> 4.7.3)
|
222
|
+
lefthook (~> 1.3)
|
223
|
+
rspec (~> 3.8)
|
224
|
+
rspec-parameterized
|
225
|
+
rubocop-rails (< 2.21.2)
|
226
|
+
timecop
|
227
|
+
webmock
|
228
|
+
yard
|
229
|
+
|
230
|
+
BUNDLED WITH
|
231
|
+
2.5.4
|
data/gitlab-dangerfiles.gemspec
CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
# we do not commit the bundle lockfile, so this temporary workaround needs to be
|
41
41
|
# present until 2.21.3 or 2.22.x is released
|
42
42
|
# See https://gitlab.com/gitlab-org/ruby/gems/gitlab-styles/-/issues/63
|
43
|
-
spec.add_development_dependency "rubocop-rails", "
|
43
|
+
spec.add_development_dependency "rubocop-rails", "< 2.21.2"
|
44
44
|
spec.add_development_dependency "timecop"
|
45
45
|
spec.add_development_dependency "webmock"
|
46
46
|
spec.add_development_dependency "yard"
|
@@ -21,14 +21,14 @@ module Danger
|
|
21
21
|
ux: "~UX",
|
22
22
|
codeowners: '~"Code Owners"',
|
23
23
|
test: "~test for `spec/features/*`",
|
24
|
-
|
25
|
-
|
26
|
-
tooling: '~"maintenance::workflow" / ~"maintenance::pipelines" for CI, Danger',
|
24
|
+
tooling: '~"maintenance::workflow" for tooling, Danger, and RuboCop',
|
25
|
+
pipeline: '~"maintenance::pipelines" for CI',
|
27
26
|
ci_template: '~"ci::templates"',
|
28
27
|
analytics_instrumentation: '~"analytics instrumentation"',
|
29
28
|
import_integrate_be: '~"group::import and integrate" (backend)',
|
30
29
|
import_integrate_fe: '~"group::import and integrate" (frontend)',
|
31
|
-
|
30
|
+
Authentication: '~"group::authentication"',
|
31
|
+
Authorization: '~"group::authorization"',
|
32
32
|
Compliance: '~"group::compliance"',
|
33
33
|
}.freeze
|
34
34
|
# rubocop:enable Style/HashSyntax
|