Files
Anthony LC a404ba683b 👷(ci) rebase a pull request from a checkbox of its description
Contributors often have to rebase their branch on main by hand, even
when nothing conflicts. Add a "Rebase" checkbox to the pull request
template: ticking it triggers a workflow that rebases the branch on its
base branch through the update-branch API.

The workflow unticks the box first so the edit cannot trigger it again,
then comments the outcome. When the branch conflicts with its base, it
says the rebase is not possible and has to be done manually. It uses
pull_request_target so it works on pull requests from forks, which is
safe because the pull request code is never checked out or run.
2026-10-06 10:52:35 +02:00
..