[Feature Request] Show backport conflicts pre-merge on PRs
#12,097 opened on Jan 30, 2024
Repository metrics
- Stars
- (8,123 stars)
- PR merge metrics
- (Avg merge 5d 9h) (266 merged PRs in 30d)
Description
Is your feature request related to a problem? Please describe
The backport automation, when it works, greatly reduces the manual effort to maintain other branches. However, sometimes it fails but we don't get any indication that it will fail until after the PR on main is committed. I think it would be nice to know ahead of time if my PR will generate a conflict on backport, and to know which files will conflict. This gives me an opportunity to fix it ahead of time if possible. (The usual avoidable conflicts are due to an incorrect CHANGELOG entry, but this still strikes me as being potentially useful even if we improve the CHANGELOG process to avoid contention on a single file)
Describe the solution you'd like
If I add a backport 2.x label to my PR, then a GitHub action is run that tells me either one of the following:
- My commit will cleanly backport to the 2.x branch
- My commit will not cleanly backport, and which files have conflicts that must be manually resolved
Related component
Build