From 45c01f4bf464766939f233b98cbc70acc0115543 Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Sun, 22 Jan 2017 21:42:40 +0100 Subject: [PATCH] [Danger] Use the markdown method to display the CHANGELOG format --- Dangerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dangerfile b/Dangerfile index c8a8d35..f0a61cf 100644 --- a/Dangerfile +++ b/Dangerfile @@ -12,11 +12,12 @@ warn("Big PR") if git.lines_of_code > 500 if !git.modified_files.include?("CHANGELOG.yml") && !declared_trivial fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/SwiftGen/SwiftGen/blob/master/CHANGELOG.md).") changelog_msg = <<-CHANGELOG_FORMAT.gsub(/^ *\|/,'') - |We use the following format for CHANGELOG entries: - |
-  | * Describe your change here.  Don’t forget to use 2 spaces at the end of the last line describing your change.  
+  |Note: we use the following format for CHANGELOG entries:
+  |```
+  | * Describe your change here. Don’t forget to use 2 spaces at the end
+  |   of the last line describing your change.  
   |   [#nn](https://github.com/SwiftGen/SwiftGen/pull/nn)
-  |
/ + |``` CHANGELOG_FORMAT - message(changelog_msg) + markdown(changelog_msg) end