Pull Request was force-pushed even though the PR was edited and a rebase was not requested #19994
Replies: 3 comments 3 replies
-
Ensure gitAuthor is different |
Beta Was this translation helpful? Give feedback.
-
I'm seeing this problem as well, though not always because of a dependency update. It also seems to hapen when the base-branch moves. Either way, it's really infuriating because sometimes the added commit is really important. Having renovate clobber it with a force-push risks somebody merging w/o the necessary added commit. Not to mention that it renders Renovate's message meaningless: "Edited/Blocked Notification...". An alternate idea to workaround this situation: Support a "renovate-disabled" label, where if present, causes renovate to actually ignore and not touch a PR. |
Beta Was this translation helpful? Give feedback.
-
Type of discussion.
I'm proposing an idea
Tell us more.
On Jan 9, a PR was created to update a dependency from 2.8.1 to 2.8.2
On Jan 10, a contributor pushed a fix to the same branch
On Jan 11, the following comment was posted:
On Jan 18, the PR was force-pushed with version 2.8.3, which lost the commit from Jan 10.
This happened because we have a bot that tries to merge the main branch into the PR to ensure tests pass prior to merging. The same GitHub user is being used so that Renovate can rebase and force-push branches that become conflicted. Would it be alright if I create a Pull Request to update the logic in https://github.com/renovatebot/renovate/blob/main/lib/util/git/index.ts#L636 so that it doesn't only look at the last commit and instead, compares the branch to the default branch?
Beta Was this translation helpful? Give feedback.
All reactions