Table of Contents

Method GetCommitsAsync

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetCommitsAsync(string, string, DateTime, DateTime?, string?, string?)

Retrieves commits from a GitHub repository within a specified time range. Handles pagination for repositories with many commits.

public static Task<IEnumerable<GitHubUtils.CommitInfo>> GetCommitsAsync(string owner, string repo, DateTime since, DateTime? until = null, string? token = null, string? branch = null)

Parameters

owner string

Repository owner.

repo string

Repository name.

since DateTime

Start date (UTC).

until DateTime?

End date (UTC). Defaults to current UTC time if null.

token string

GitHub token for authenticated access. Optional for public repos.

branch string

The branch name. If not specified, defaults to "master".

Returns

Task<IEnumerable<GitHubUtils.CommitInfo>>

A collection of GitHubUtils.CommitInfo containing commit metadata.