From 078eda699f39430455cde07c8620b66d06885af5 Mon Sep 17 00:00:00 2001 From: Peter Leitzen <pleitzen@gitlab.com> Date: Wed, 12 Jul 2023 11:36:29 +0200 Subject: [PATCH] Danger: Trigger `tooling` category for gems related CI changes --- spec/tooling/danger/project_helper_spec.rb | 3 +++ tooling/danger/project_helper.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spec/tooling/danger/project_helper_spec.rb b/spec/tooling/danger/project_helper_spec.rb index fb0603a207af4..d40560c21d012 100644 --- a/spec/tooling/danger/project_helper_spec.rb +++ b/spec/tooling/danger/project_helper_spec.rb @@ -80,6 +80,7 @@ '.rubocop.yml' | [:backend] '.rubocop_todo.yml' | [:backend] '.rubocop_todo/cop/name.yml' | [:backend] + 'gems/foo/.rubocop.yml' | [:backend] 'spec/foo' | [:backend] 'spec/foo/bar' | [:backend] @@ -136,6 +137,8 @@ 'tooling/bin/find_foss_tests' | [:tooling] '.codeclimate.yml' | [:tooling] '.gitlab/CODEOWNERS' | [:tooling] + 'gems/gem.gitlab-ci.yml' | [:tooling] + 'gems/config/rubocop.yml' | [:tooling] 'lib/gitlab/ci/templates/Security/SAST.gitlab-ci.yml' | [:ci_template] 'lib/gitlab/ci/templates/dotNET-Core.yml' | [:ci_template] diff --git a/tooling/danger/project_helper.rb b/tooling/danger/project_helper.rb index 9ab6c5fa32ebd..d956bac902077 100644 --- a/tooling/danger/project_helper.rb +++ b/tooling/danger/project_helper.rb @@ -112,6 +112,8 @@ module ProjectHelper %r{\A\.editorconfig\z} => :tooling, %r{Dangerfile\z} => :tooling, %r{\A((ee|jh)/)?(danger/|tooling/danger/)} => :tooling, + %r{\Agems/gem\.gitlab-ci\.yml\z} => :tooling, + %r{\Agems/config/} => :tooling, %r{\A((ee|jh)/)?scripts/(lib/)?glfm/.*\.rb} => [:backend], %r{\A((ee|jh)/)?scripts/(lib/)?glfm/.*\.js} => [:frontend], @@ -161,6 +163,7 @@ module ProjectHelper %r{\A(Gemfile.*|Rakefile)\z} => :backend, %r{\A[A-Z_]+_VERSION\z} => :backend, %r{\A\.rubocop(_todo)?\.yml\z} => :backend, + %r{\Agems/.*/\.rubocop\.yml\z} => :backend, %r{\A\.rubocop_todo/.*\.yml\z} => :backend, %r{\Afile_hooks/} => :backend, -- GitLab