summaryrefslogtreecommitdiff
path: root/tooling
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-24 12:13:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-24 12:13:01 +0000
commit552e85a58645e5321b33dacc8d410fa88fb75a85 (patch)
tree1a75b860851c45f970cf13a35001ce9caded3fa5 /tooling
parentb0d6a7fbff3f97a4b2b56b672902a21e0fc29195 (diff)
downloadgitlab-ce-552e85a58645e5321b33dacc8d410fa88fb75a85.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r--tooling/danger/stable_branch.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/tooling/danger/stable_branch.rb b/tooling/danger/stable_branch.rb
index fe3ea835bbc..7da138d4ec4 100644
--- a/tooling/danger/stable_branch.rb
+++ b/tooling/danger/stable_branch.rb
@@ -61,7 +61,7 @@ module Tooling
return unless non_security_stable_branch?
fail FEATURE_ERROR_MESSAGE if has_feature_label?
- fail BUG_ERROR_MESSAGE unless has_bug_label?
+ fail BUG_ERROR_MESSAGE unless bug_fixes_only?
warn VERSION_WARNING_MESSAGE unless targeting_patchable_version?
@@ -117,6 +117,10 @@ module Tooling
helper.mr_has_labels?('failure::flaky-test')
end
+ def bug_fixes_only?
+ has_bug_label? || has_only_documentation_changes?
+ end
+
def has_only_documentation_changes?
categories_changed = helper.changes_by_category.keys
return false unless categories_changed.size == 1