Skip to content
代码片段 群组 项目
提交 5facc548 编辑于 作者: Steve Abrams's avatar Steve Abrams 提交者: Mayra Cabrera
浏览文件

Update the version error message for extended maintenance policy

上级 f5a188e3
No related branches found
No related tags found
无相关合并请求
......@@ -206,7 +206,7 @@
context 'when not an applicable version' do
let(:target_branch) { '14-9-stable-ee' }
it_behaves_like 'with a warning', described_class::VERSION_ERROR_MESSAGE
it_behaves_like 'with a warning', described_class::VERSION_WARNING_MESSAGE
end
context 'when the version API request fails' do
......
......@@ -33,8 +33,8 @@ module StableBranch
This branch is meant for backporting bug fixes. If this MR qualifies please add the `type::bug` label. #{MAINTENANCE_POLICY_MESSAGE}
MSG
VERSION_ERROR_MESSAGE = <<~MSG
Patches are generally only accepted on the most recent 3 minor versions of GitLab. #{MAINTENANCE_POLICY_MESSAGE}
VERSION_WARNING_MESSAGE = <<~MSG
Backporting to older releases requires an [exception request process](https://docs.gitlab.com/ee/policy/maintenance.html#backporting-to-older-releases)
MSG
FAILED_VERSION_REQUEST_MESSAGE = <<~MSG
......@@ -62,7 +62,7 @@ def check!
fail FEATURE_ERROR_MESSAGE if has_feature_label?
fail BUG_ERROR_MESSAGE unless has_bug_label?
warn VERSION_ERROR_MESSAGE unless targeting_patchable_version?
warn VERSION_WARNING_MESSAGE unless targeting_patchable_version?
return if has_flaky_failure_label? || has_only_documentation_changes?
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册