Conversation
Contributor
Author
|
This change is part of the following stack: Change managed by git-spice. |
There was a problem hiding this comment.
Pull request overview
Adds client-side SDK support for the new GetCommit API across TypeScript, Python, and Go, and bumps patch versions for each package to ship the new endpoint.
Changes:
- TypeScript SDK: add
Repo.getCommit()types, schema validation, response transform, and README docs. - Python SDK: add
Repo.get_commit()typing + implementation and README docs. - Go SDK: add
Repo.GetCommit()types, response struct, implementation, and tests.
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/code-storage-typescript/src/types.ts | Adds GetCommitOptions/GetCommitResult and Repo.getCommit() to the TS public types. |
| packages/code-storage-typescript/src/schemas.ts | Introduces getCommitResponseSchema and GetCommitResponseRaw type. |
| packages/code-storage-typescript/src/index.ts | Implements RepoImpl.getCommit() and transforms the API response into CommitInfo. |
| packages/code-storage-typescript/package.json | Bumps TS package version to 1.4.4. |
| packages/code-storage-typescript/README.md | Documents repo.getCommit() usage and adds the new types to the README interface section. |
| packages/code-storage-python/uv.lock | Bumps locked version to 1.5.4. |
| packages/code-storage-python/pyproject.toml | Bumps Python package version to 1.5.4. |
| packages/code-storage-python/pierre_storage/version.py | Updates PACKAGE_VERSION to 1.5.4. |
| packages/code-storage-python/pierre_storage/types.py | Adds GetCommitResult and Repo.get_commit() to the typed interface. |
| packages/code-storage-python/pierre_storage/repo.py | Implements Repo.get_commit() calling /repos/commit?sha=... and parsing commit metadata. |
| packages/code-storage-python/pierre_storage/init.py | Exports GetCommitResult. |
| packages/code-storage-python/README.md | Documents repo.get_commit() usage and adds the method to the README interface section. |
| packages/code-storage-go/version.go | Bumps Go package version to 0.4.3. |
| packages/code-storage-go/types.go | Adds GetCommitOptions and GetCommitResult. |
| packages/code-storage-go/responses.go | Adds getCommitResponse response struct. |
| packages/code-storage-go/repo_test.go | Adds tests for Repo.GetCommit() and missing SHA validation. |
| packages/code-storage-go/repo.go | Implements Repo.GetCommit() calling repos/commit and mapping response into CommitInfo. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Cover sha trimming/required validation, request path and `sha` query param, `git:read` scope, ttl override, and response parsing into `CommitInfo`. Co-authored-by: Cursor <[email protected]>
Add the new GET /repos/commit row to the endpoint table and a dedicated reference section so the skill stays in sync with the SDK surface. Co-authored-by: Cursor <[email protected]>
Match the convention used by other GET endpoints (diff, file, branches/diff) where the table lists the bare path and params live in the endpoint reference. Co-authored-by: Cursor <[email protected]>
fat
approved these changes
May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
SDK changes for the new API added in https://github.com/pierredotco/monorepo/pull/1216
Patch versions bumped for all 3 packages.
Test plan
Tested e2e locally for all 3 SDKs.