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

Commit b458094

Browse files
AliSoftwaredjbe
authored andcommitted
Fix CHANGELOG format message again
1 parent 8b57bc4 commit b458094

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Dangerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ warn("Big PR") if git.lines_of_code > 500
1111
# if git.lines_of_code > 3 && !git.modified_files.include?("CHANGELOG.yml")
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).")
14-
message "We use the following format for CHANGELOG entries:\n\n" +
15-
'```' + "\n" +
16-
"* Describe your change here. Don't forget to use 2 spaces at the end of the last line describing your change. \n" +
17-
" [#nn](https://github.com/SwiftGen/SwiftGen/pull/nn)" +
18-
'```' + "\n"
14+
message <<-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.
18+
| [#nn](https://github.com/SwiftGen/SwiftGen/pull/nn)
19+
|</pre>/<code>
20+
CHANGELOG_FORMAT
1921
end

0 commit comments

Comments
 (0)