Skip to content

Stacked GitHub PRs: Auto-switch between "single" and "overlap" workflows - #1408

Open
rejc2 wants to merge 2 commits into
facebook:mainfrom
rejc2:rejc2/auto-switch-single-overlap-workflows
Open

Stacked GitHub PRs: Auto-switch between "single" and "overlap" workflows#1408
rejc2 wants to merge 2 commits into
facebook:mainfrom
rejc2:rejc2/auto-switch-single-overlap-workflows

Conversation

@rejc2

@rejc2 rejc2 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

When submitting stacked GitHub PRs, automatically switch between "single" and "overlap" workflows based on whether the repo is a fork or not.

Because the SINGLE workflow matches the pattern needed for GitHub's native PR stacks, it makes for a good default.

However, the SINGLE workflow generally doesn't work across repo forks – the OVERLAP workflow is needed here, which is why it is the current default.

This PR automatically switches between the SINGLE workflow (by default) for non-forked repos, and the OVERLAP workflow for forked repos. (The original config stays in place, so OVERLAP workflow can still be chosed for all repos, but the default is SINGLE.)

("SINGLE" workflow means each PR in the stack targets the head of the PR below it in the stack; "OVERLAP" workflow means every PR targets the main branch.)

@meta-cla meta-cla Bot added the CLA Signed label Aug 8, 2026
@meta-codesync

meta-codesync Bot commented Aug 8, 2026

Copy link
Copy Markdown

This pull request has been imported. If you are a Meta employee, you can view this in D115309565. (Because this pull request was imported automatically, there will not be any future comments.)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant