probot / ideas

Share ideas for new GitHub Apps built with Probot
96 stars 48 forks source link

Keep pull request branches up to date #99

Closed zeke closed 4 years ago

zeke commented 5 years ago

I work on a fairly large project that ships several times a day. We have a branch protection setting enabled on the repo:

Screen Shot 2019-08-28 at 1 10 55 PM

Because of this setting, we see this a lot:


Screen Shot 2019-08-28 at 1 09 26 PM

Sometimes we have several pull requests that are green, reviewed, and ready to go. But merging one of them means all the others fall behind, and have to updated one at a time, and we have to wait for all checks to run and pass again.

I think it would be cool if there was a Probot app for this. It would keep an eye on all PRs that are passing all their checks, and keep them updated with their base branch when it's updated. Does such a thing exist? If not, maybe we should build it! We could call it... The FreshMaker.

rsarky commented 5 years ago

This sounds cool! Might take take a stab at this if this hasn't been done before

zeke commented 5 years ago

Hey @rsarky! If you do work on this, please let me know. I'd be happy to help on it.

Jme7 commented 4 years ago

Just wondering, 11 months and 1 day later, has this been made? This looks like an AMAZING app, and I want to try it!

zeke commented 4 years ago

I did a quick search and found this GitHub Action for keeping branches up to date: https://github.com/marketplace/actions/auto-update -- haven't used it before but it might do the trick.

GitHub
Auto Update - GitHub Marketplace
A GitHub Action that auto-updates PRs with changes from their destination branch
Jme7 commented 4 years ago

Thanks! I was actually doubting that anyone would respond, but I figured I might as well ask. So thank you!!

zeke commented 4 years ago

I'm going to go ahead and close this issue, as GitHub Actions has become the de facto product for solving workflow problems of this nature.

Jme7 commented 4 years ago

Ok