mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(pr): wider try/catch on changelog versioning
This commit is contained in:
parent
e79319d300
commit
7b6d2d9c99
1 changed files with 11 additions and 11 deletions
|
@ -11,6 +11,7 @@ export async function getChangeLogJSON(
|
|||
args: BranchUpgradeConfig
|
||||
): Promise<ChangeLogResult | null> {
|
||||
const { sourceUrl, versioning, fromVersion, toVersion } = args;
|
||||
try {
|
||||
if (!sourceUrl) {
|
||||
return null;
|
||||
}
|
||||
|
@ -21,11 +22,10 @@ export async function getChangeLogJSON(
|
|||
|
||||
const releases = args.releases || (await getInRangeReleases(args));
|
||||
|
||||
try {
|
||||
const res = await sourceGithub.getChangeLogJSON({ ...args, releases });
|
||||
return res;
|
||||
} catch (err) /* istanbul ignore next */ {
|
||||
logger.error({ err }, 'getChangeLogJSON error');
|
||||
logger.error({ args, err }, 'getChangeLogJSON error');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue