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

Commit 43fdde8

Browse files
AliSoftwaredjbe
authored andcommitted
Come on, heredoc syntax!
1 parent b458094 commit 43fdde8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dangerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ 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 <<-CHANGELOG_FORMAT.gsub(/^ *\|/,'')
15-
We use the following format for CHANGELOG entries:
14+
changelog_msg = <<-CHANGELOG_FORMAT.gsub(/^ *\|/,'')
15+
|We use the following format for CHANGELOG entries:
1616
|<code><pre>
1717
| * Describe your change here. Don’t forget to use 2 spaces at the end of the last line describing your change.
1818
| [#nn](https://github.com/SwiftGen/SwiftGen/pull/nn)
1919
|</pre>/<code>
2020
CHANGELOG_FORMAT
21+
message(changelog_msg)
2122
end

0 commit comments

Comments
 (0)