diff --git a/Dangerfile b/Dangerfile index d3beb7e..2cb0d6b 100644 --- a/Dangerfile +++ b/Dangerfile @@ -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(/^ *\|/,'') @@ -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