diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index 9471952ce2db933a2d33e49bb421d9f22d3dbc90..7b0d6f0704dd33bc976a24d8cad7ba99241bf5ae 100644 --- a/lib/platform/github/index.js +++ b/lib/platform/github/index.js @@ -707,12 +707,12 @@ async function getPr(prNo) { const authors = prCommits.reduce((arr, commit) => { logger.trace({ commit }, `Checking commit`); let author = 'unknown'; - if (commit.committer && commit.committer.login) { - author = commit.committer.login; - } else if (commit.author) { - author = commit.author.login; + if (commit.author) { + author = commit.author.login || commit.author.email; + } else if (commit.committer && commit.committer.login) { + author = commit.committer.login || commit.committer.email; } else if (commit.commit && commit.commit.author) { - author = commit.commit.author.email; + author = commit.commit.author.login || commit.commit.author.email; } else { logger.debug('Could not determine commit author'); }