aiq.tool.github_tools.create_github_commit#

Classes#

GithubCommitCodeModel

GithubCommitCodeModelList

GithubCommitCodeConfig

Tool that commits and pushes modified code to a remote GitHub repository asynchronously.

Functions#

commit_code_async(config, builder)

Commits and pushes modified code to a remote GitHub repository asynchronously.

Module Contents#

class GithubCommitCodeModel(/, **data: Any)#

Bases: pydantic.BaseModel

branch: str = None#
commit_msg: str = None#
local_path: str = None#
remote_path: str = None#
class GithubCommitCodeModelList(/, **data: Any)#

Bases: pydantic.BaseModel

updated_files: list[GithubCommitCodeModel] = None#
class GithubCommitCodeConfig(/, **data: Any)#

Bases: aiq.data_models.function.FunctionBaseConfig

Tool that commits and pushes modified code to a remote GitHub repository asynchronously.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

repo_name: str = None#
local_repo_dir: str = None#
timeout: int = None#
async commit_code_async(
config: GithubCommitCodeConfig,
builder: aiq.builder.builder.Builder,
)#

Commits and pushes modified code to a remote GitHub repository asynchronously.