Skip to content

馃懛(ci) rebase a pull request from a checkbox of its description - #2786

Closed
AntoLC wants to merge 3 commits into
mainfrom
ci-rebase-workflow
Closed

AntoLC wants to merge 3 commits into
mainfrom
ci-rebase-workflow

Conversation

@AntoLC

@AntoLC AntoLC commented Oct 6, 2026

Copy link
Copy Markdown
Member

Purpose

Rebasing a branch on main by hand is tedious when nothing conflicts. Add a checkbox to the pull request template that does it automatically.

Proposal

  • add a "Rebase" checkbox to the pull request template
  • add a workflow that, once the box is ticked, rebases the branch on its base branch through the update-branch API, only if there is no conflict
  • comment the outcome on the pull request: rebased, conflict (to be done manually), already up to date, or failure

AntoLC added 2 commits October 6, 2026 10:52
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.
@AntoLC AntoLC self-assigned this Oct 6, 2026
@AntoLC AntoLC removed the noChangeLog label Oct 6, 2026
@AntoLC
AntoLC force-pushed the ci-rebase-workflow branch from cac7270 to cc882a2 Compare October 6, 2026 08:59
@AntoLC

AntoLC commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

Useless actually the button is already existing in github.

@AntoLC AntoLC closed this Oct 6, 2026
@lunika

lunika commented Oct 6, 2026

Copy link
Copy Markdown
Member

And the signature on the commit is also missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants