bot

package
v0.0.0-...-78730a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

Bot handles the code review logic

func NewBot

func NewBot(cfg *config.Config, platform git.Platform, chat *chat.Chat) *Bot

NewBot creates a new Bot instance

func (*Bot) GetIndexManager

func (b *Bot) GetIndexManager() *indexer.IndexManager

GetIndexManager 获取索引管理器

func (*Bot) HandleGitHubPullRequest

func (b *Bot) HandleGitHubPullRequest(ctx context.Context, event *github.PullRequestEvent) error

HandleGitHubPullRequest handles GitHub pull request events

func (*Bot) HandleGitLabMergeRequest

func (b *Bot) HandleGitLabMergeRequest(ctx context.Context, event *gitlab.MergeEvent) error

HandleGitLabMergeRequest handles GitLab merge request events

func (*Bot) HandleGiteaPullRequest

func (b *Bot) HandleGiteaPullRequest(ctx context.Context, event *gitea.HookPullRequestEvent) error

HandleGiteaPullRequest handles Gitea pull request events

func (*Bot) HandlePullRequestEvent

func (b *Bot) HandlePullRequestEvent(ctx context.Context, event *github.PullRequestEvent) error

HandlePullRequestEvent handles GitHub pull request events

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL