Lists all commits for a repository with pagination support.
func (
r *CommitService) List(ctx context.Context,
owner string,
repo string,
query CommitListParams,
opts ...option.RequestOption) (res *pagination.OffsetPaginationCommits[CommitWithLookups],
err error
)Lists all commits for a repository with pagination support. This endpoint supports both authenticated and unauthenticated access. Authenticated users can access private repos, while unauthenticated users can only access public repos. The include_stats parameter controls whether download and view statistics are computed (defaults to true).
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
owner* | string | |
repo* | string | |
query* | CommitListParams | |
opts* | ...option.RequestOption |