LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithresourcescommitsCommitsResourcelist
Method●Since v0.15

list

Copy
list(
  self,
  repo: str,
  *,
  owner: str,
  include_stats: bool
View source on GitHub
|
Omit
=
omit
,
limit
:
int
|
Omit
=
omit
,
offset
:
int
|
Omit
=
omit
,
tag
:
str
|
Omit
=
omit
,
extra_headers
:
Headers
|
None
=
None
,
extra_query
:
Query
|
None
=
None
,
extra_body
:
Body
|
None
=
None
,
timeout
:
float
|
httpx
.
Timeout
|
None
|
NotGiven
=
not_given
)
->
SyncOffsetPaginationCommits
[
CommitWithLookups
]

Parameters

NameTypeDescription
include_statsbool | Omit
Default:omit

IncludeStats determines whether to compute num_downloads and num_views

limitint | Omit
Default:omit

Limit is the pagination limit.

offsetint | Omit
Default:omit
tagstr | Omit
Default:omit
extra_headersHeaders | None
Default:None
extra_queryQuery | None
Default:None
extra_bodyBody | None
Default:None
timeoutfloat | httpx.Timeout | None | NotGiven
Default:not_given

List commits for a repository, newest first, with pagination support.

This endpoint supports both authenticated and unauthenticated access. Authenticated users can access private repositories; unauthenticated users can only access public repositories. The include_stats parameter controls whether download and view statistics are computed (defaults to true).

Offset is the pagination offset.

Tag filters commits to only those with a specific tag (e.g. "production", "staging")

Send extra headers

Add additional query parameters to the request

Add additional JSON properties to the request

Override the client-level default timeout for this request, in seconds