diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-06 12:08:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-06 12:08:07 +0000 |
commit | b161512b300e70c1e786dd299867dad284e11019 (patch) | |
tree | d0537a6f97b8a117a1a7763c50dca18735b64aca /tooling | |
parent | eb4b72630a9f479f33858fc9011e18666da3bbba (diff) | |
download | gitlab-ce-b161512b300e70c1e786dd299867dad284e11019.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r-- | tooling/danger/feature_flag.rb | 6 |
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 |