Skip to content

feat(sdk): expose notes on commit history - #56

Open
necolas wants to merge 2 commits into
devfrom
necolas/inline-commit-notes-sdk
Open

feat(sdk): expose notes on commit history#56
necolas wants to merge 2 commits into
devfrom
necolas/inline-commit-notes-sdk

Conversation

@necolas

@necolas necolas commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Why

listCommits returns commit metadata without Git notes. A history view that shows notes must make one additional request for each commit and notes ref.

The HTTP support is in monorepo PR #2421.

Scope

Add optional notes-ref arguments to listCommits in the TypeScript, Python, and Go SDKs. Each SDK sends one notes_ref query key for each value.

Add an optional notes map to each commit result. Preserve an omitted map, an empty map, and a null value as distinct states.

Update the package documentation and the Code Storage skill with the request and response contract.

Tradeoffs

The server limits a request to four distinct notes refs. A null value means that the note exceeded an inline response limit, so the caller must read it with getNote.

Blast Radius

The new arguments and result fields are optional. Existing listCommits calls keep their current request and response behavior.

Do not release or advertise this SDK feature until the complete service rollout of monorepo PR #2421 is complete.

Verification

  • TypeScript: 204 unit tests passed. The CommonJS, ESM, and declaration builds passed.
  • Python: 184 unit tests passed. Ruff checks passed for the changed files. The final focused test-file run passed 80 tests.
  • Go: go test ./... and go vet ./... passed.
  • The Code Storage skill validator passed.
  • An independent review found no blocking or important issue.

Pass notes refs to list-commits in TypeScript, Python, or Go, and read
the returned notes from each commit. The clients preserve empty maps
and null values so callers can distinguish no note from an over-limit
note.

Update package docs and the Code Storage skill with the request and
response contract.
Restore the existing layout of two Python tests that are outside the
inline notes change. This keeps the feature diff focused on its own
behavior.
@notion-workspace

Copy link
Copy Markdown

@necolas
necolas changed the base branch from main to dev September 8, 2026 18:16
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