Skip to content
代码片段 群组 项目
未验证 提交 c81182ff 编辑于 作者: Joe Woodward's avatar Joe Woodward 提交者: GitLab
浏览文件

Prevent 500 errors when evaluating empty changelog configs

In 17.2 we fixed an issue when loading the changelog config yaml
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156938

This change caught errors from Psych when loading the YAML file. This
didn't take into account empty YAML files.

These changes check the output from safe_load to ensure there was
something loaded before trying to parse the config.

If nothing was loaded we return the default config.

Co-authored-by: @nav-j
Changelog: fixed
上级 76c37871
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册