Skip to content

Commit

Permalink
Merge pull request #19452 from kategengler/kg-changelog-login
Browse files Browse the repository at this point in the history
Prevent changelog script from erroring when the commitInfo object has
  • Loading branch information
rwjblue authored Mar 8, 2021
2 parents 75fa7e3 + aab891c commit b945e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function getCommitMessage(commitInfo) {
}

function excludeDependabot(commitInfo) {
let author = commitInfo.author.login;
let author = commitInfo.author && commitInfo.author.login;
return author !== 'dependabot-preview[bot]' && author !== 'dependabot[bot]';
}

Expand Down

0 comments on commit b945e5c

Please sign in to comment.