Documentation
¶
Index ¶
- func ExplainCode(ctx context.Context, repo *repo_model.Repository, filePath, code string, ...) (*ai.ExplainCodeResponse, error)
- func GenerateCommitMessage(ctx context.Context, repo *repo_model.Repository, gitRepo *git.Repository, ...) (*ai.GenerateCommitMessageResponse, error)
- func GenerateDocumentation(ctx context.Context, repo *repo_model.Repository, ...) (*ai.GenerateDocumentationResponse, error)
- func IsEnabled() bool
- func ReviewPullRequest(ctx context.Context, pr *issues_model.PullRequest) (*ai.ReviewPullRequestResponse, error)
- func SuggestLabels(ctx context.Context, issue *issues_model.Issue) (*ai.SuggestLabelsResponse, error)
- func TriageIssue(ctx context.Context, issue *issues_model.Issue) (*ai.TriageIssueResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExplainCode ¶
func ExplainCode(ctx context.Context, repo *repo_model.Repository, filePath, code string, startLine, endLine int, question string) (*ai.ExplainCodeResponse, error)
ExplainCode provides an AI explanation of code
func GenerateCommitMessage ¶
func GenerateCommitMessage(ctx context.Context, repo *repo_model.Repository, gitRepo *git.Repository, style string) (*ai.GenerateCommitMessageResponse, error)
GenerateCommitMessage generates a commit message for staged changes
func GenerateDocumentation ¶
func GenerateDocumentation(ctx context.Context, repo *repo_model.Repository, filePath, code, docType, language, style string) (*ai.GenerateDocumentationResponse, error)
GenerateDocumentation generates documentation for code
func ReviewPullRequest ¶
func ReviewPullRequest(ctx context.Context, pr *issues_model.PullRequest) (*ai.ReviewPullRequestResponse, error)
ReviewPullRequest performs an AI review of a pull request
func SuggestLabels ¶
func SuggestLabels(ctx context.Context, issue *issues_model.Issue) (*ai.SuggestLabelsResponse, error)
SuggestLabels suggests labels for an issue
func TriageIssue ¶
func TriageIssue(ctx context.Context, issue *issues_model.Issue) (*ai.TriageIssueResponse, error)
TriageIssue performs AI triage on an issue
Types ¶
This section is empty.
Source Files
¶
- ai.go
Click to show internal directories.
Click to hide internal directories.