gitlab-dangerfiles 4.4.0 → 4.6.0

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: aba5fe5b513843f893ab44f12950f4e870d37b331b8e43e50e884498cf924acb
4
- data.tar.gz: b9f57ccf7cdc4e41cf9fa6af85ec314c83e5e07f4dd00f062251b492aa50d573
3
+ metadata.gz: 501394f58303715430e058da5fbc46a6c539136b8a888ed22521ab56da6595c3
4
+ data.tar.gz: 520c933eb21695e1cdc9e74cea42ec1e636b08455377d2b9dc3ebafe405977ac
5
5
  SHA512:
6
- metadata.gz: 83776a852572740d36b35eb3a7080faef40f5237434004f0767b26ce61979bd664bf8e4fdd86ed3280e0d678273431c7b4f485b814fd9ec96c46905ba16503ec
7
- data.tar.gz: e6e60640c4e5caa08e2f82350deb39fa349b44295b2677965638f4cdf36ee7067bcbff4bfa80c1ab305067335c13e074bd0e7a69a1626ae82aa9d132b43f1277
6
+ metadata.gz: 5d68efa303d47210a6e1d126d9e7706f8872ae61a5a24dacce6b6a48242f8e9d0854f8067d35c64e6340602768e4ed65bd1fcfab71f7447798576172095497bc
7
+ data.tar.gz: 79b38327e2b8a133c58124952b2ff371cb551fde1d61aeb29b5f67d29ee212f93c1c423842121f0247304af52414efd5e690d3fa1c4e50083a9dfacdca7f4d33
data/.gitlab-ci.yml CHANGED
@@ -2,6 +2,9 @@ stages:
2
2
  - test
3
3
  - deploy
4
4
 
5
+ variables:
6
+ DEFAULT_CI_IMAGE: "ruby:${RUBY_VERSION}"
7
+
5
8
  workflow:
6
9
  rules:
7
10
  # For merge requests, create a pipeline.
@@ -11,8 +14,8 @@ workflow:
11
14
  # For tags, create a pipeline.
12
15
  - if: '$CI_COMMIT_TAG'
13
16
 
14
- .default:
15
- image: "ruby:${RUBY_VERSION}"
17
+ default:
18
+ image: "${DEFAULT_CI_IMAGE}"
16
19
  tags:
17
20
  - gitlab-org
18
21
  before_script:
@@ -28,23 +31,22 @@ workflow:
28
31
  - Gemfile.lock
29
32
  policy: pull
30
33
 
31
- test:rspec:
32
- extends: .default
34
+ .default-test-job:
33
35
  stage: test
34
- script:
35
- - bundle exec rspec
36
+ needs: []
36
37
  parallel:
37
38
  matrix:
38
39
  - RUBY_VERSION: ['3.0', '3.1', '3.2']
39
40
 
41
+ test:rspec:
42
+ extends: .default-test-job
43
+ script:
44
+ - bundle exec rspec
45
+
40
46
  test:rubocop:
41
- extends: .default
42
- stage: test
47
+ extends: .default-test-job
43
48
  script:
44
49
  - bundle exec rubocop -P -E .
45
- parallel:
46
- matrix:
47
- - RUBY_VERSION: ['3.0', '3.1', '3.2']
48
50
 
49
51
  include:
50
52
  - template: Security/Dependency-Scanning.gitlab-ci.yml
@@ -53,7 +55,9 @@ include:
53
55
  - project: 'gitlab-org/quality/pipeline-common'
54
56
  file:
55
57
  - '/ci/danger-review.yml'
56
- - '/ci/gem-release.yml'
58
+ - component: "gitlab.com/gitlab-org/quality/pipeline-common/gem-release@7.6.1"
59
+ inputs:
60
+ smoke_test_script: "ruby -r 'gitlab-dangerfiles' -e \"puts Gitlab::Dangerfiles::VERSION\""
57
61
 
58
62
  # run security jobs on MRs
59
63
  # see: https://gitlab.com/gitlab-org/gitlab/-/issues/218444#note_478761991
@@ -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", "!= 2.21.2"
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,9 +21,8 @@ module Danger
21
21
  ux: "~UX",
22
22
  codeowners: '~"Code Owners"',
23
23
  test: "~test for `spec/features/*`",
24
- # Deprecated as of 2.3.0 in favor of tooling
25
- engineering_productivity: '~"Engineering Productivity" for CI, Danger',
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)',
@@ -91,7 +91,7 @@ module Danger
91
91
  # Fetch an already picked backend reviewer, or pick one otherwise
92
92
  spin.reviewer = backend_spin&.reviewer || spin_for_category(project, :backend).reviewer
93
93
  end
94
- when :tooling, :engineering_productivity # Deprecated as of 2.3.0 in favor of tooling
94
+ when :tooling
95
95
  if spin.maintainer.nil?
96
96
  # Fetch an already picked backend maintainer, or pick one otherwise
97
97
  spin.maintainer = backend_spin&.maintainer || spin_for_category(project, :backend).maintainer
@@ -9,7 +9,7 @@ def post_labels(labels)
9
9
  helper.mr_iid,
10
10
  add_labels: labels.join(","))
11
11
  rescue Gitlab::Error::Forbidden
12
- warn("This Merge Request needs to be labelled with #{helper.labels_list(labels)}. Please request a reviewer or maintainer to add them.")
12
+ warn("Labels missing: please ask a reviewer or maintainer to add #{helper.labels_list(labels)} to this merge request.")
13
13
  end
14
14
 
15
15
  post_labels(helper.labels_to_add) if helper.labels_to_add.any?
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "4.4.0"
3
+ VERSION = "4.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-20 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -140,14 +140,14 @@ dependencies:
140
140
  name: rubocop-rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "!="
143
+ - - "<"
144
144
  - !ruby/object:Gem::Version
145
145
  version: 2.21.2
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "!="
150
+ - - "<"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 2.21.2
153
153
  - !ruby/object:Gem::Dependency
@@ -263,7 +263,7 @@ metadata:
263
263
  homepage_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-dangerfiles
264
264
  source_code_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-dangerfiles
265
265
  changelog_uri: https://gitlab.com/gitlab-org/ruby/gems/gitlab-dangerfiles/-/releases
266
- post_install_message:
266
+ post_install_message:
267
267
  rdoc_options: []
268
268
  require_paths:
269
269
  - lib
@@ -278,8 +278,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
278
  - !ruby/object:Gem::Version
279
279
  version: '0'
280
280
  requirements: []
281
- rubygems_version: 3.1.6
282
- signing_key:
281
+ rubygems_version: 3.3.26
282
+ signing_key:
283
283
  specification_version: 4
284
284
  summary: This gem provides common Dangerfile and plugins for GitLab projects.
285
285
  test_files: []