mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(bitbucket): log warning when PR creation fails (#5474)
This commit is contained in:
parent
98f1308689
commit
30ee09ca4a
1 changed files with 20 additions and 15 deletions
|
@ -745,6 +745,7 @@ export async function createPr({
|
||||||
reviewers,
|
reviewers,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
const prInfo = (
|
const prInfo = (
|
||||||
await api.post(`/2.0/repositories/${config.repository}/pullrequests`, {
|
await api.post(`/2.0/repositories/${config.repository}/pullrequests`, {
|
||||||
body,
|
body,
|
||||||
|
@ -761,6 +762,10 @@ export async function createPr({
|
||||||
config.prList.push(pr);
|
config.prList.push(pr);
|
||||||
}
|
}
|
||||||
return pr;
|
return pr;
|
||||||
|
} catch (err) /* istanbul ignore next */ {
|
||||||
|
logger.warn({ err }, 'Error creating pull request');
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Reviewer {
|
interface Reviewer {
|
||||||
|
|
Loading…
Reference in a new issue