diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-24 12:13:01 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-24 12:13:01 +0000 |
commit | 552e85a58645e5321b33dacc8d410fa88fb75a85 (patch) | |
tree | 1a75b860851c45f970cf13a35001ce9caded3fa5 /tooling | |
parent | b0d6a7fbff3f97a4b2b56b672902a21e0fc29195 (diff) | |
download | gitlab-ce-552e85a58645e5321b33dacc8d410fa88fb75a85.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r-- | tooling/danger/stable_branch.rb | 6 |
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 |