fix(dev-infra): remove bots from special thanks section (#42697)

With this change we remove known used bots from special thanks section in the changelog.

PR Close #42697
This commit is contained in:
Alan Agius 2021-06-29 10:33:40 +02:00 committed by Jessica Janiuk
parent f29fe5ced0
commit 8528073f6c
2 changed files with 12 additions and 2 deletions

View File

@ -5546,7 +5546,12 @@ _%>
_%>
<%_
const authors = commits.filter(unique('author')).map(c => c.author).sort();
const botsAuthorName = ['dependabot[bot]', 'Renovate Bot'];
const authors = commits
.filter(unique('author'))
.map(c => c.author)
.filter(a => !botsAuthorName.includes(a))
.sort();
if (authors.length === 1) {
_%>
## Special Thanks:

View File

@ -70,7 +70,12 @@ _%>
_%>
<%_
const authors = commits.filter(unique('author')).map(c => c.author).sort();
const botsAuthorName = ['dependabot[bot]', 'Renovate Bot'];
const authors = commits
.filter(unique('author'))
.map(c => c.author)
.filter(a => !botsAuthorName.includes(a))
.sort();
if (authors.length === 1) {
_%>
## Special Thanks: