git

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) CreateFeature

func (g *Client) CreateFeature(ctx context.Context, repos, source, target string) error

func (*Client) CreatePR

func (g *Client) CreatePR(ctx context.Context, repos, source, target string) (*Info, error)

func (*Client) GetPR

func (g *Client) GetPR(ctx context.Context, repos, source, target string) ([]*Info, error)

func (*Client) Merge

func (g *Client) Merge(ctx context.Context, repos string, num int32) error

func (*Client) MergePR

func (g *Client) MergePR(ctx context.Context, repos string, source, target string) error

type Config

type Config struct {
	Token string `json:"token" yaml:"token"`
}

type Git

type Git interface {
	CreateFeature(ctx context.Context, repos, source, target string) error
	CreatePR(ctx context.Context, repos, source, target string) (*Info, error)
	GetPR(ctx context.Context, repos, source, target string) ([]*Info, error)
	Merge(ctx context.Context, repos string, num int32) error
	MergePR(ctx context.Context, repos string, source, target string) error
}

func NewGiteeClient

func NewGiteeClient(config *Config) (Git, error)

type Info

type Info struct {
	HtmlUrl string `json:"html_url"`
	Url     string `json:"url"`
	Number  int32  `json:"number"`
}

type Opt

type Opt func(c *Client)

Jump to

Keyboard shortcuts

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