diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2022-03-30 07:39:05 +0000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2022-03-30 07:39:05 +0000 |
commit | 5aa16a0b37dcb8a45a89f3b6e746aef68599f962 (patch) | |
tree | f76d8147204f6dc644426ea010757770e7753bd7 | |
parent | 4686629e402b7620d4d740358ba317d7eec619fa (diff) | |
parent | 21dd64c5e1d68779fba788233f9b10a955ea5341 (diff) | |
download | gitlab-shell-5aa16a0b37dcb8a45a89f3b6e746aef68599f962.tar.gz |
Merge branch 'use-gitlab-dangerfiles' into 'main'
Use gitlab-dangerfiles to improve MR hygiene
See merge request gitlab-org/gitlab-shell!583
-rw-r--r-- | .gitlab-ci.yml | 3 | ||||
-rw-r--r-- | Dangerfile | 9 | ||||
-rw-r--r-- | Gemfile | 4 | ||||
-rw-r--r-- | Gemfile.lock | 90 |
4 files changed, 106 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2710128..a2f84d0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,9 @@ include: - template: Security/SAST.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml - template: Security/Secret-Detection.gitlab-ci.yml + - project: 'gitlab-org/quality/pipeline-common' + file: + - '/ci/danger-review.yml' variables: DOCKER_VERSION: "20.10.3" diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 0000000..3bd688e --- /dev/null +++ b/Dangerfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require 'gitlab-dangerfiles' + +Gitlab::Dangerfiles.for_project(self) do |gitlab_dangerfiles| + gitlab_dangerfiles.import_plugins + + gitlab_dangerfiles.import_dangerfiles(except: %w[changelog commit_messages simple_roulette]) +end @@ -3,3 +3,7 @@ source 'https://rubygems.org' group :development, :test do gem 'rspec', '~> 3.8.0' end + +group :development, :danger do + gem 'gitlab-dangerfiles', '~> 3.0.0' +end diff --git a/Gemfile.lock b/Gemfile.lock index f89d33f..4160f7a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,89 @@ GEM remote: https://rubygems.org/ specs: + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) + claide (1.1.0) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) + colored2 (3.1.2) + cork (0.3.0) + colored2 (~> 3.1) + danger (8.5.0) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored2 (~> 3.1) + cork (~> 0.1) + faraday (>= 0.9.0, < 2.0) + faraday-http-cache (~> 2.0) + git (~> 1.7) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.0) + no_proxy_fix + octokit (~> 4.7) + terminal-table (>= 1, < 4) + danger-gitlab (8.0.0) + danger + gitlab (~> 4.2, >= 4.2.0) diff-lcs (1.3) + faraday (1.10.0) + faraday-em_http (~> 1.0) + faraday-em_synchrony (~> 1.0) + faraday-excon (~> 1.1) + faraday-httpclient (~> 1.0) + faraday-multipart (~> 1.0) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.0) + faraday-patron (~> 1.0) + faraday-rack (~> 1.0) + faraday-retry (~> 1.0) + ruby2_keywords (>= 0.0.4) + faraday-em_http (1.0.0) + faraday-em_synchrony (1.0.0) + faraday-excon (1.1.0) + faraday-http-cache (2.2.0) + faraday (>= 0.8) + faraday-httpclient (1.0.1) + faraday-multipart (1.0.3) + multipart-post (>= 1.2, < 3) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.2.0) + faraday-patron (1.0.0) + faraday-rack (1.0.0) + faraday-retry (1.0.3) + git (1.10.2) + rchardet (~> 1.8) + gitlab (4.18.0) + httparty (~> 0.18) + terminal-table (>= 1.5.1) + gitlab-dangerfiles (3.0.0) + danger (>= 8.4.5) + danger-gitlab (>= 8.0.0) + rake + httparty (0.20.0) + mime-types (~> 3.0) + multi_xml (>= 0.5.2) + kramdown (2.3.2) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + mime-types (3.4.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2022.0105) + multi_xml (0.6.0) + multipart-post (2.1.1) + nap (1.1.0) + no_proxy_fix (0.1.2) + octokit (4.22.0) + faraday (>= 0.9) + sawyer (~> 0.8.0, >= 0.5.3) + open4 (1.3.4) + public_suffix (4.0.6) + rake (13.0.6) + rchardet (1.8.0) + rexml (3.2.5) rspec (3.8.0) rspec-core (~> 3.8.0) rspec-expectations (~> 3.8.0) @@ -15,11 +97,19 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.8.0) rspec-support (3.8.0) + ruby2_keywords (0.0.5) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.1.0) PLATFORMS ruby DEPENDENCIES + gitlab-dangerfiles (~> 3.0.0) rspec (~> 3.8.0) BUNDLED WITH |