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

Commit

Permalink
Don't forget the full stop!
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware authored and djbe committed Apr 24, 2017
1 parent f4855f2 commit cfc72ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ warn("Big PR") if git.lines_of_code > 500
# if git.lines_of_code > 3 && !git.modified_files.include?("CHANGELOG.yml")
if !git.modified_files.include?("CHANGELOG.yml") && !declared_trivial
repo_url = github.pr_json['head']['repo']['html_url']
pr_title = github.pr_title
pr_title += '.' unless pr_title.end_with?('.')
pr_number = github.pr_json['number']
pr_url = github.pr_json['html_url']
pr_title = github.pr_title.sub(/[?.!,;]?$/, '').capitalize
pr_author = github.pr_author
pr_author_url = "https://github.com/#{github.pr_author}"
pr_author_url = "https://github.com/#{pr_author}"

fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](#{repo_url}/blob/master/CHANGELOG.md).")
changelog_msg = <<-CHANGELOG_FORMAT.gsub(/^ *\|/,'')
Expand All @@ -26,6 +27,6 @@ if !git.modified_files.include?("CHANGELOG.yml") && !declared_trivial
| [@#{pr_author}](#{pr_author_url})
|```
|:bulb: Don't forget to use 2 spaces after the full stop at the end of the line describing your changes.
CHANGELOG_FORMAT
CHANGELOG_FORMAT
markdown(changelog_msg)
end

0 comments on commit cfc72ed

Please sign in to comment.