Skip to content

[2/n][sl][github][gh stacks] add support for stack endpoint - #1393

Open
raydatray wants to merge 2 commits into
facebook:mainfrom
raydatray:pr1393
Open

[2/n][sl][github][gh stacks] add support for stack endpoint#1393
raydatray wants to merge 2 commits into
facebook:mainfrom
raydatray:pr1393

Conversation

@raydatray

@raydatray raydatray commented Jul 31, 2026

Copy link
Copy Markdown

ctx

basic plumbing for github native stacks REST API

changes made

  • gh_submit: StackDetails dataclass + get_stack_for_pull_request, create_stack, add_prs_to_stack, unstack, all pinned to the 2026-03-10 preview API version
  • update_pull_request now takes base: Optional[str]: github rejects updatePullRequest mutations that include baseRefName for PRs in a native stack, so base=None uses a new mutation variant (GRAPHQL_UPDATE_PULL_REQUEST_NO_BASE) that only touches title/body

test plan

CI, and dogfooded on my own computer via a patch raydatray/rusty-mcrouter#198
Screenshot 2026-07-31 at 3 20 04 PM


Stack created with Sapling. Best reviewed with ReviewStack.

@meta-codesync

meta-codesync Bot commented Jul 31, 2026

Copy link
Copy Markdown

This pull request has been imported. If you are a Meta employee, you can view this in D114402654. (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