diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bf7c92..edfc5e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,6 @@ jobs: with: node-version: 18.x - - run: npx githublogen + - run: npx githublogen@latest env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/src/markdown.ts b/src/markdown.ts index 8566fc0..40b671f 100644 --- a/src/markdown.ts +++ b/src/markdown.ts @@ -110,7 +110,14 @@ function createContributorLine(contributors: ResolvedAuthor[]) { let loginLine = ''; let unLoginLine = ''; - contributors.forEach((contributor, index) => { + const contributorMap = new Map(); + contributors.forEach(contributor => { + contributorMap.set(contributor.email, contributor); + }); + + const filteredContributors = Array.from(contributorMap.values()); + + filteredContributors.forEach((contributor, index) => { const { name, email, login } = contributor; if (!login) {