Skip to content

Add ephemeral flag to listBranches and listCommits#25

Merged
rkdud007 merged 3 commits into
mainfrom
pia/patch-ephemeral
May 11, 2026
Merged

Add ephemeral flag to listBranches and listCommits#25
rkdud007 merged 3 commits into
mainfrom
pia/patch-ephemeral

Conversation

@rkdud007
Copy link
Copy Markdown
Collaborator

@rkdud007 rkdud007 commented May 8, 2026

Mirrors the gateway changes in monorepo (commits 90eea1455 and 7c3699c78) that added an ephemeral query parameter to GET /repos/branches and GET /repos/commits. When true, branches are listed from / branch is resolved against the ephemeral namespace. Default remains false, so the SDK only sends the param when the caller explicitly opts in.

depend on
https://github.com/pierredotco/monorepo/pull/1257
https://github.com/pierredotco/monorepo/pull/1261

rkdud007 and others added 3 commits May 8, 2026 14:32
Mirrors the gateway changes in monorepo (commits 90eea1455 and 7c3699c78)
that added an `ephemeral` query parameter to GET /repos/branches and
GET /repos/commits. When true, branches are listed from / branch is
resolved against the ephemeral namespace. Default remains false, so the
SDK only sends the param when the caller explicitly opts in.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirrors the gateway's GrepRequest change in monorepo (commit 7c3699c78)
that introduced an `ephemeral` JSON body field on POST /repos/grep. When
true, the gateway resolves `ref` against the ephemeral namespace before
running the search. SDK only sends the field when the caller explicitly
opts in, preserving existing behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The ListBranchesOptions / ListCommitsOptions interface blocks (TS) and
the Protocol-style list_branches / list_commits signatures (Python) had
drifted from the actual SDK surface after adding ephemeral support.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rkdud007
Copy link
Copy Markdown
Collaborator Author

rkdud007 commented May 8, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rkdud007 rkdud007 merged commit 0ce0ee3 into main May 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant