diff --git a/lib/workers/pr/changelog/source-github.js b/lib/workers/pr/changelog/source-github.js index 68455a5b5c86430089ede8d067d589ebeded2e53..b59964ed48f905e40e5c4facb9a9445ebbdb4933 100644 --- a/lib/workers/pr/changelog/source-github.js +++ b/lib/workers/pr/changelog/source-github.js @@ -62,9 +62,9 @@ async function getChangeLogJSON({ logger.debug('Repository URL does not match any hnown hosts'); return null; } - const repository = pathname.slice(1); + const repository = pathname.slice(1).replace(/\/$/, ''); if (repository.split('/').length !== 2) { - logger.info('Invalid github URL found'); + logger.info({ repositoryUrl }, 'Invalid github URL found'); return null; } if (!(releases && releases.length)) {