Skip to content

Commit

Permalink
[ci] Run format
Browse files Browse the repository at this point in the history
[skip ci]

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
  • Loading branch information
VietND96 committed Feb 17, 2025
1 parent 16e9d6b commit 0d84cf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -1191,11 +1191,11 @@ end

def update_changelog(version, language, path, changelog, header)
tag = previous_tag(version, language)
if language == 'javascript'
log = `git --no-pager log #{tag}...HEAD --pretty=format:"- %s" --reverse #{path}`
else
log = `git --no-pager log #{tag}...HEAD --pretty=format:"* %s" --reverse #{path}`
end
log = if language == 'javascript'
`git --no-pager log #{tag}...HEAD --pretty=format:"- %s" --reverse #{path}`
else
`git --no-pager log #{tag}...HEAD --pretty=format:"* %s" --reverse #{path}`
end
commits = log.split('>>>').map { |entry|
lines = entry.split("\n")
lines.reject! { |line| line.match?(/^(----|Co-authored|Signed-off)/) || line.empty? }
Expand Down

0 comments on commit 0d84cf8

Please sign in to comment.