-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infrastructure: add workflow to pull latest development #6020
Conversation
Hey there! Thanks for helping Mudlet improve. 🌟 Test versionsYou can directly test the changes here:
No need to install anything - just unzip and run. |
🤔 So this rebases a pending PR on top of the current |
All in all, I'd recommend that this command only be used (except in exceptional circumstances) by the PR proposer so they do not get the rug pulled out from under them when they find their GH repository no longer reflects their local working copy and they cannot push out further, previously unpublished, commits to there without having to jump through some extra hoops to stash those, pull in the changes, and then rebase their stashed commits onto the new HEAD. |
It's called rebase so I believe it rebases. I am OK with others using it as well, on some occasions the PR proposer is no longer active and updating their repository will be fine. Cases where someone gets the rug pulled under them will be rare and unlikely a huge issue when it does happen. Limiting it to the PR proposer only would defeat the purpose of this improvement - the idea is that someone other than the proposer can update the pull request without having to mess with git. |
@vadi2 if you need to update a PR so that it incorporates the changes done in the main Remember you shouldn't rebase publicly released commits which is what PRs are, as https://git-scm.com/book/en/v2/Git-Branching-Rebasing puts it:
tl;dr; Only rebase in private where no-one else can see you! |
Let's give this a try and see if it is a problem in practice, before we write it off on theory alone. If anything does go bad, we'll turn this off and will be able to recover thanks to git history. |
👎 I repeat - we do not want to rebase PRs onto the development branch as it breaks things - we should be merging (like we already do manually when CI breaks and a fix gets into |
How about using the built-in feature https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-suggestions-to-update-pull-request-branches instead of a gh action. That one leaves the choice open to the person using that button, if I get the docs correctly. |
Hey, even better! I've enabled that option. Big thanks @keneanung. |
Brief overview of PR changes/additions
Typing a
/rebase
comment in a PR will pull latestdevelopment
changes in.Motivation for adding to Mudlet
It's necessary to do this sometimes, and being able to do it from the web without messing with git is nice.
Other info (issues closed, discussion etc)
Built with https://github.com/marketplace/actions/automatic-rebase