Skip to content

Commit

Permalink
Support NEWS.md as a changelog file name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 25, 2024
1 parent 299d514 commit 410107e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def changelog
return nil if base_path.nil?
all_files = Dir.glob("**/*", File::FNM_DOTMATCH, base: base_path).tap{|a| a.delete(".")}

changelog_files = all_files.select{|path| path.match(/^CHANGE|^HISTORY/i) }.sort{|path| supported_readme_format?(path) ? 0 : 1 }
changelog_files = all_files.select{|path| path.match(/^CHANGE|^HISTORY|^NEWS/i) }.sort{|path| supported_readme_format?(path) ? 0 : 1 }

changelog_files = changelog_files.sort_by(&:length)
return nil if changelog_files.empty?
Expand Down

0 comments on commit 410107e

Please sign in to comment.