rebase
rebase copied to clipboard
Automatic rebase on pushes to base branch
It will be nice to have an option to trigger the action on push events to a branch to rebase all PRs that want to merge into this branch.
All pushes would be nice, but I’d personally want to restrict it to the “update branch” button, both so it doesn’t autorebase every time i push on the cli (even if it’s already rebased), and so it’s an explicit action separate from pushes.
Maybe can be configurable to what branches should do the rebase? Or instead rebase, maybe merge from master...
Certainly I'd expect any and every github action to be configurable just like branch protections - to target all branches, specific branches, or just branches matching a pattern.
Certainly I'd expect any and every github action to be configurable just like branch protections - to target all branches, specific branches, or just branches matching a pattern.
maybe https://github.com/actions/bin/tree/master/filter would do the trick
Hey, any update on this issue ?
Would love to contribute if someone can give me some help to do this. :+1:
@mrpandat no progress on this issue so far.
I've only though about a possible solution. IMO such feature is not that generic because for repositories with high amount of commits it can overwhelm CI. And as @ljharb most likely you want to explicitly trigger such batch rebase only for PRs that do some breaking changes to APIs or just massive refactorings.
I think the easiest solution will be to create a separate action (or separate script within this action) that upon a comment like /rebase-open-prs to an already merged PR will comment with /rebase because of #<PR NUMBER> in all PRs targeting the same branch.
entrypoint.sh
The danger of an autonomous rebase is that the rebase involves a force-push. So unless great care if taking there is a potentially that some commits by PR author will be overridden.