github_commits
Fetch and format Github commits.
This module provides functionality to: - Fetch commits from a Github repository for a specific user. - Format commit information into a context string suitable for generating brag documents.
Classes:
Name | Description |
---|---|
GithubCommitsSource |
A class to fetch Github commits from a repository for a specific user. |
GithubCommitsSource
dataclass
🔗
Bases: DataSource[FormattedGithubCommit]
A class to fetch Github commits from a repository for a specific user.
Attributes:
Name | Type | Description |
---|---|---|
github |
Github
|
A Github API client instance. |
repo |
RepoReference
|
A RepoReference object representing the repository. |
author |
str
|
The username of the author whose commits are being fetched. |
from_date |
datetime | None
|
An optional datetime object representing the start date for fetching commits. |
to_date |
datetime | None
|
An optional datetime object representing the end date for fetching commits. |