Skip to content
代码片段 群组 项目
未验证 提交 eee74d78 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Allow to set changelog_type for Houskeeper::Change


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
上级 c32e7878
No related branches found
No related tags found
无相关合并请求
......@@ -9,7 +9,8 @@ class Change
:changed_files,
:labels,
:reviewers,
:keep_class
:keep_class,
:changelog_type
def initialize
@labels = []
......@@ -35,7 +36,7 @@ def commit_message
#{mr_description}
Changelog: other
Changelog: #{changelog_type || 'other'}
MARKDOWN
end
......
......@@ -57,6 +57,28 @@
MARKDOWN
)
end
context 'when setting a "changelog_type"' do
before do
change.changelog_type = 'removed'
end
it 'incudes "Changelog: removed"' do
expect(change.commit_message).to eq(
<<~MARKDOWN
The title
The description
This change was generated by
[gitlab-housekeeper](https://gitlab.com/gitlab-org/gitlab/-/tree/master/gems/gitlab-housekeeper)
Changelog: removed
MARKDOWN
)
end
end
end
describe '#valid?' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册