mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix: ignore delete label if dry-run (#3211)
This commit is contained in:
parent
703fa52d6c
commit
123bdd4572
1 changed files with 8 additions and 1 deletions
|
@ -28,7 +28,14 @@ async function getParentBranch(config) {
|
|||
}
|
||||
if (pr.labels && pr.labels.includes(config.rebaseLabel)) {
|
||||
logger.info('Manual rebase requested via PR labels for #' + pr.number);
|
||||
await platform.deleteLabel(pr.number, config.rebaseLabel);
|
||||
// istanbul ignore if
|
||||
if (config.dryRun) {
|
||||
logger.info(
|
||||
`DRY-RUN: Would delete label ${config.rebaseLabel} from #${pr.number}`
|
||||
);
|
||||
} else {
|
||||
await platform.deleteLabel(pr.number, config.rebaseLabel);
|
||||
}
|
||||
return { parentBranch: undefined };
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue