New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitLabError: 404 Branch Not Found #2614
Comments
Doesn’t GitLab automatically close PRs when the associated branch disappears? |
@rarkins I don't think so no |
That's really strange then. A while back they changed behaviour which meant Renovate's own PRs got closed when it needs to delete a branch before pushing again. I don't understand how/why the behaviour would be different in this case. In short though: don't go deleting the branches unless you plan to close the MR too :) |
@rarkins Yeah I realise that now, the issue I now have is how do I stop it warning me on every run? |
@Jamesking56 if the problem is because a MR's branch was deleted and the MR remains open, can you just manually close or delete the MR? |
@rarkins The MR is closed. I closed the MR and clicked to delete the branch and now this warning always appears. |
@Jamesking56 in that case could you update/correct the reproduction steps? What you describe now doesn't match with the steps in the bug report. |
@rarkins updated |
Looking at the source code, I think this is a harmless situation (a closed PR is retrieve but its branch does not exist) so I am adding a fix to skip any logger warning in such cases. |
Thanks so much @rarkins |
🎉 This issue has been resolved in version 13.99.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What Renovate type are you using?
Renovate Docker run via GitLab CI
Describe the bug
If you delete a branch in GitLab, it causes an error in renovate log:
This causes the script to return a failure (return code 1)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect renovate to close the MR (if it hasn't been closed) and ignore that update.
The text was updated successfully, but these errors were encountered: