Skip to content

Commit

Permalink
Fix duplicate contributor names when generating changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Sep 20, 2023
1 parent f91cc37 commit e687c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/changelog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def merge_content
end

def new_contributor_lines
contributors
.map { |user| format(CONTRIBUTOR, user: user) }
.reject { |line| @rest.include?(line) }
unique_contributor_names = contributors.map { |user| format(CONTRIBUTOR, user: user) }.uniq

unique_contributor_names.reject { |line| @rest.include?(line) }
end

def contributors
Expand Down

0 comments on commit e687c3f

Please sign in to comment.