Skip to content

github: Add native stack gateway operations - #1396

Merged
abhinav merged 1 commit into
mainfrom
github-native-stack-gateway
Aug 24, 2026
Merged

github: Add native stack gateway operations#1396
abhinav merged 1 commit into
mainfrom
github-native-stack-gateway

Conversation

@abhinav

@abhinav abhinav commented Aug 10, 2026

Copy link
Copy Markdown
Owner

GitHub's native stack and asynchronous merge APIs require REST
alongside the existing GraphQL operations. Keep both protocols behind
one Gateway so callers use repository-domain operations instead of
transport clients.

Expose only the stack mutations and asynchronous merge state needed by
the forge layer. Attach to existing pending merges by operation ID
without changing merge behavior.

Stack reconciliation needs only pull request state, head repository
identity, and native stack membership. Add a compact batch lookup that
preserves input order, leaves missing pull requests nil, and loads each
distinct native stack once instead of loading full pull request
metadata.

@abhinav abhinav added the skip changelog PRs that don't need a changelog. label Aug 10, 2026
@abhinav
abhinav force-pushed the github-native-stack-gateway branch 2 times, most recently from 6b58d43 to a284736 Compare August 12, 2026 03:06
@abhinav
abhinav marked this pull request as ready for review August 12, 2026 03:10
@abhinav
abhinav force-pushed the github-native-stack-gateway branch from a284736 to 7ef5fce Compare August 12, 2026 04:19
@abhinav
abhinav marked this pull request as draft August 15, 2026 13:56
@abhinav
abhinav force-pushed the github-native-stack-gateway branch from 7ef5fce to 99b0291 Compare August 15, 2026 13:56
@abhinav
abhinav force-pushed the github-native-stack-gateway branch 3 times, most recently from 5242f46 to 54c3fd3 Compare August 23, 2026 14:39
@abhinav
abhinav marked this pull request as ready for review August 23, 2026 14:47
GitHub exposes native stack and asynchronous merge operations through REST
alongside the existing GraphQL reads.
Keep both transports behind Gateway so forge callers use repository-domain
operations and the wire representations remain private.

Expose only the stack mutations and asynchronous merge state needed by the
forge layer.
Attach to an existing pending merge without changing its requested behavior.

Stack reconciliation needs current bases, head repository identity, locked
member state, and native stack membership.
Load that projection in input order with batched GraphQL queries, resolve each
distinct stack once, detect API availability, and provide explicit stack
dissolution for structural updates.
@abhinav
abhinav force-pushed the github-native-stack-gateway branch from 54c3fd3 to dcd3bef Compare August 24, 2026 03:13
stack merge was automatically disabled August 24, 2026 12:40

Pull Request is not mergeable

@abhinav
abhinav merged commit 0b9c833 into main Aug 24, 2026
22 checks passed
@abhinav
abhinav deleted the github-native-stack-gateway branch August 24, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog PRs that don't need a changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant