Closed ghost closed 6 years ago
GitLab changing their APIs has been a real challenge. Earlier, they allowed a branch to be deleted without closing the MR - so we would delete then create again and all was stitched together. They changed logic to then close MRs automatically if the branch was deleted, but I found you could still recreate the branch and reopen the PR, so it wasn’t too bad/noisy. Creating a new PR would be undesirable for most as you create a lot of noise and lose comment histories too. Seems like creating the new branch failed somehow and that’s why we’re left with a blocking PR. I’ll look into it soon
BTW if you rename the old MR then it still unblock it and you should get a new MR
Unfortunately I cannot test renaming the previous MR anymore since that was a test repository I already deleted. Once it happens in my current real repository without a fix from your end I will give it a try.
:tada: This issue has been resolved in version 12.30.16 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What Renovate type are you using? Renovate CLI
Describe the bug Renovate generated a MR for an upgrade and with
bumpVersion
active it bumped the version from0.1.0
to0.1.1
in the MR. After manually messing around by changing theversion
to0.2.0
in the master branch Renovate recognizes the previous branch needs a rebase, closes the MR and errors with the following log output:It seems that Renovate and Gitlab are messing around with closing/deleting branches. After this issue the branch has been deleted but the MR has only been closed. So it seems Renovate is trying to update a branch that it has just deleted.
To Reproduce Steps to reproduce the behavior:
package.json
ofversion: "0.1.0"
and any outdated package e.g."typescript": "2.7.1"
."bumpVersion": "patch"
inrenovate.json
.typescript
to version 2.8.3 (at the time of this post) and suggestsversion: "0.1.1"
in thepackage.json
of therenovate/typescript-2.X
branch.version: "0.2.0"
in thepackage.json
of themaster
branch.Expected behavior I'd expect that the old MR either gets closed or deleted (on Gitlab that is actually possible) and that
renovate/typescript-2.X
gets either rebased or deleted and recreated from themaster
branch with the suggested upgrade totypescript
and a version bump toversion: "0.2.1"
in thepackage.json
.Additional context Minor edit: running Renovate a second time after the error does not recreate the branch or the MR since it reports that a "Closed PR already exists. Skipping branch." which is not the desired behaviour in that case. Apparently it thinks someone declined the upgrade and thus does not want to be noisy.