Skip to content
This repository was archived by the owner on Sep 6, 2018. It is now read-only.

Commit e33b550

Browse files
AliSoftwaredjbe
authored andcommitted
[Danger] Use the markdown method to display the CHANGELOG format
1 parent 43fdde8 commit e33b550

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Dangerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ warn("Big PR") if git.lines_of_code > 500
1212
if !git.modified_files.include?("CHANGELOG.yml") && !declared_trivial
1313
fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/SwiftGen/SwiftGen/blob/master/CHANGELOG.md).")
1414
changelog_msg = <<-CHANGELOG_FORMAT.gsub(/^ *\|/,'')
15-
|We use the following format for CHANGELOG entries:
16-
|<code><pre>
17-
| * Describe your change here. Don’t forget to use 2 spaces at the end of the last line describing your change.
15+
|Note: we use the following format for CHANGELOG entries:
16+
|```
17+
| * Describe your change here. Don’t forget to use 2 spaces at the end
18+
| of the last line describing your change.
1819
| [#nn](https://github.com/SwiftGen/SwiftGen/pull/nn)
19-
|</pre>/<code>
20+
|```
2021
CHANGELOG_FORMAT
21-
message(changelog_msg)
22+
markdown(changelog_msg)
2223
end

0 commit comments

Comments
 (0)