aiq.tool.github_tools.create_github_pr#

Classes#

GithubCreatePullModel

GithubCreatePullList

GithubCreatePullConfig

Tool that creates a pull request in a GitHub repository asynchronously with assignees and reviewers.

Functions#

create_pull_request_async(config, builder)

Creates a pull request in a GitHub repository asynchronously with assignees and reviewers.

Module Contents#

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

Bases: pydantic.BaseModel

title: str = None#
body: str = None#
source_branch: str = None#
target_branch: str = None#
assignees: list[str] | None = None#
reviewers: list[str] | None = None#
class GithubCreatePullList(/, **data: Any)#

Bases: pydantic.BaseModel

pull_details: GithubCreatePullModel = None#
class GithubCreatePullConfig(/, **data: Any)#

Bases: aiq.data_models.function.FunctionBaseConfig

Tool that creates a pull request in a GitHub repository asynchronously with assignees and reviewers.

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#
timeout: int = None#
async create_pull_request_async(
config: GithubCreatePullConfig,
builder: aiq.builder.builder.Builder,
)#

Creates a pull request in a GitHub repository asynchronously with assignees and reviewers.