mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: check that repositoryUrl starts with github.com
This commit is contained in:
parent
82ec20d35d
commit
e795dc5a86
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ async function getChangeLogJSON(depName, fromVersion, newVersion) {
|
|||
logger.debug('Checking for github source URL manually');
|
||||
const dep = await npmRegistry.getDependency(depName);
|
||||
// istanbul ignore if
|
||||
if (dep && dep.repositoryUrl) {
|
||||
if (
|
||||
dep &&
|
||||
dep.repositoryUrl &&
|
||||
dep.repositoryUrl.startsWith('https://github.com/')
|
||||
) {
|
||||
logger.info('Found github URL manually');
|
||||
const github = dep.repositoryUrl
|
||||
.replace('https://github.com/', '')
|
||||
|
|
Loading…
Reference in a new issue