ghclient

package
v0.0.0-...-5c09a0a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitInfo

type CommitInfo struct {
	AuthorLink   string
	LinkToChange string
	AuthorName   string
	ChangedFiles []string
}

type GhClient

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

func New

func New(cfg config.Config, logger logger.Logger) (*GhClient, error)

func (*GhClient) GetCommit

func (g *GhClient) GetCommit(ctx context.Context) (*CommitInfo, error)

func (*GhClient) GetContents

func (g *GhClient) GetContents(ctx context.Context, filePath string) ([]byte, error)

func (*GhClient) PrInfo

func (g *GhClient) PrInfo(ctx context.Context) (*PrInfo, error)

type PrInfo

type PrInfo struct {
	PrLink       string
	AuthorLink   string
	PrCreator    string
	PrBase       string
	ChangedFiles []string
}

Jump to

Keyboard shortcuts

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