Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/danger
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2020-02-06 18:58:56 +0300
committerPaul Okstad <pokstad@gitlab.com>2020-02-06 18:58:56 +0300
commit03d6e97befc6dd61609f521def15bc90a689d1f5 (patch)
treeb41ba606d207ac8f45b47e9d23f9afa4172ff217 /danger
parent44617907069597b8a6e9e1b373465a429e90215a (diff)
Incorrect changelogs should be caught by Danger
Diffstat (limited to 'danger')
-rw-r--r--danger/changelog/Dangerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/danger/changelog/Dangerfile b/danger/changelog/Dangerfile
index ab56b0643..0273ab0e5 100644
--- a/danger/changelog/Dangerfile
+++ b/danger/changelog/Dangerfile
@@ -14,7 +14,7 @@ consider adding any of the %<labels>s labels.
MSG
def check_changelog(path)
- yaml = YAML.safe_load(File.read(path))
+ yaml = YAML.load_file(path)
fail "`title` should be set, in #{gitlab.html_link(path)}! #{SEE_DOC}" if yaml["title"].nil?
fail "`type` should be set, in #{gitlab.html_link(path)}! #{SEE_DOC}" if yaml["type"].nil?