diff --git a/CHANGELOG.md b/CHANGELOG.md index 5003c3e7..a6e8c65b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change log + + ## master (unreleased) ## 0.27.0 (2023-01-30) diff --git a/changelog/.gitkeep b/changelog/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/tasks/changelog.rb b/tasks/changelog.rb index 00dc3be4..d27ee4d7 100644 --- a/tasks/changelog.rb +++ b/tasks/changelog.rb @@ -30,7 +30,6 @@ def initialize(type:, body: last_commit_title, ref_type: nil, ref_id: nil, user: end def write - FileUtils.mkdir_p(ENTRIES_PATH) File.write(path, content) path end diff --git a/test/project_test.rb b/test/project_test.rb index 71cebe3b..2ea874d0 100644 --- a/test/project_test.rb +++ b/test/project_test.rb @@ -15,11 +15,11 @@ def test_changelog_has_newline_at_end_of_file assert(@changelog.end_with?("\n")) end - def test_changelog_has_either_entries_headers_or_empty_lines + def test_changelog_has_either_entries_headers_empty_lines_or_comments non_reference_lines = @lines.take_while { |line| !line.start_with?('[@') } non_reference_lines.each do |line| - assert_match(/^(\*|#|$)/, line) + assert_match(/^(\*|#|$|| )/, line) end end