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

Commit

Permalink
[Danger] Use the markdown method to display the CHANGELOG format
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware authored and djbe committed May 7, 2017
1 parent 7a20258 commit 45c01f4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
|<code><pre>
| * 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)
|</pre>/<code>
|```
CHANGELOG_FORMAT
message(changelog_msg)
markdown(changelog_msg)
end

0 comments on commit 45c01f4

Please sign in to comment.