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 0ab2a9f commit 6832890
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 6832890

Please sign in to comment.