Skip to content

Automatically rebase merge request when target branch is automatically retargeted

Description

Noticed on .com in this MR !55283 (merged)

Screen_Shot_2021-03-03_at_4.43.44_AM

I also noticed that at the time of writing this the MR's .diff includes 6 changes:

55283.diff

Also running git diff origin/master...origin/BRANCH_NAME --stat showed that there were 6 file changes 🤷

Investigation

Screen_Shot_2021-03-03_at_5.10.58_AM

  • Even creating a new MR from a copy of the branch didn't work !55611 (closed).

  • It took squashing the commits and rebasing for the counts to align !55613 (closed).

Screen_Shot_2021-03-03_at_5.46.59_AM

Edited by Kai Armstrong