From 6f7fea9fd1652a7a5cdc01bae5ad5e44e0ba36ff Mon Sep 17 00:00:00 2001 From: Kai Armstrong Date: Fri, 4 Nov 2022 11:42:47 -0500 Subject: [PATCH] chore: add danger reviewer job to gitlab cli --- .gitignore | 3 -- .gitlab-ci.yml | 6 ++- .tool-versions | 2 + Dangerfile | 5 +++ Gemfile | 3 ++ Gemfile.lock | 102 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 117 insertions(+), 4 deletions(-) create mode 100644 .tool-versions create mode 100644 Dangerfile create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore index ddd09c75b..172fa109b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ /bin .envrc -# asdf -.tool-versions - # man pages /share/man/man1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd76af82c..d9f9750a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,11 @@ 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' + rules: + - if: $CI_SERVER_HOST == 'gitlab.com' # From: https://docs.gitlab.com/ee/ci/caching/#cache-go-dependencies .go-cache: diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 000000000..09b2b2d1a --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +golang 1.18.6 +ruby 3.0.4 diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 000000000..1952208d3 --- /dev/null +++ b/Dangerfile @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +require 'gitlab-dangerfiles' + +Gitlab::Dangerfiles.for_project(self, &:import_defaults) diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..ed528261e --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem "gitlab-dangerfiles", "~> 3.6" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..69d686f85 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,102 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.8.1) + public_suffix (>= 2.0.2, < 6.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 (9.0.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 (~> 5.0) + terminal-table (>= 1, < 4) + danger-gitlab (8.0.0) + danger + gitlab (~> 4.2, >= 4.2.0) + faraday (1.10.2) + 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.4.1) + faraday (>= 0.8) + faraday-httpclient (1.0.1) + faraday-multipart (1.0.4) + multipart-post (~> 2) + 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.12.0) + addressable (~> 2.8) + rchardet (~> 1.8) + gitlab (4.19.0) + httparty (~> 0.20) + terminal-table (>= 1.5.1) + gitlab-dangerfiles (3.6.1) + 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.4.0) + 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.2.3) + nap (1.1.0) + no_proxy_fix (0.1.2) + octokit (5.4.0) + faraday (>= 1, < 3) + sawyer (~> 0.9) + open4 (1.3.4) + public_suffix (5.0.0) + rake (13.0.6) + rchardet (1.8.0) + rexml (3.2.5) + ruby2_keywords (0.0.5) + sawyer (0.9.2) + addressable (>= 2.3.5) + faraday (>= 0.17.3, < 3) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.3.0) + +PLATFORMS + ruby + +DEPENDENCIES + gitlab-dangerfiles (~> 3.6) + +BUNDLED WITH + 2.3.24 -- GitLab