git

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit = models.Commit

type CommitFile

type CommitFile = models.CommitFile

type Factory

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

Factory creates platform clients based on configuration

func NewFactory

func NewFactory(cfg *config.Config) *Factory

NewFactory creates a new platform factory

func (*Factory) CreatePlatform

func (f *Factory) CreatePlatform() (models.GitPlatform, error)

CreatePlatform creates a platform client based on configuration

func (*Factory) CreateWebhookHandler

func (f *Factory) CreateWebhookHandler(secret string) (WebhookHandler, error)

CreateWebhookHandler creates a webhook handler for the specified platform

type Platform

type Platform = models.GitPlatform

使用models包中定义的接口和数据结构

type PlatformType

type PlatformType string

PlatformType represents the type of git platform

const (
	GitHubPlatform PlatformType = "github"
	GitLabPlatform PlatformType = "gitlab"
	GiteaPlatform  PlatformType = "gitea"
)

type PullRequest

type PullRequest = models.PullRequest

type ReviewComment

type ReviewComment = models.ReviewComment

type WebhookHandler

type WebhookHandler interface{}

WebhookHandler is an interface for webhook handlers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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