summaryrefslogtreecommitdiff
path: root/tooling
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-06 12:08:07 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-06 12:08:07 +0000
commitb161512b300e70c1e786dd299867dad284e11019 (patch)
treed0537a6f97b8a117a1a7763c50dca18735b64aca /tooling
parenteb4b72630a9f479f33858fc9011e18666da3bbba (diff)
downloadgitlab-ce-b161512b300e70c1e786dd299867dad284e11019.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r--tooling/danger/feature_flag.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/tooling/danger/feature_flag.rb b/tooling/danger/feature_flag.rb
index da0b7053af1..3fb20c561af 100644
--- a/tooling/danger/feature_flag.rb
+++ b/tooling/danger/feature_flag.rb
@@ -15,6 +15,12 @@ module Tooling
files.select { |path| path =~ %r{\A(ee/)?config/feature_flags/} }.map { |path| Found.new(path) }
end
+ # TODO: Move this to gitlab-dangerfiles helper
+ # https://gitlab.com/gitlab-org/ruby/gems/gitlab-dangerfiles/-/blob/master/lib/danger/plugins/internal/helper.rb
+ def stage_label
+ helper.mr_labels.find { |label| label.start_with?("devops::") }
+ end
+
class Found
ATTRIBUTES = %w[name introduced_by_url rollout_issue_url milestone type group default_enabled].freeze