github

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client forge.Client) scm.Driver

func ParseRepo

func ParseRepo(fullName string) (owner, repo string, err error)

ParseRepo splits "owner/repo" into owner and repo name.

Types

type Driver

type Driver struct {
	Client forge.Client
}

Driver implements scm.Driver using forge.Client.

func (*Driver) AddComment

func (d *Driver) AddComment(ctx context.Context, owner, repo string, number int, body string) (*forge.IssueComment, error)

func (*Driver) AddIssueLabels

func (d *Driver) AddIssueLabels(ctx context.Context, owner, repo string, number int, labels ...string) error

func (*Driver) CloseIssue

func (d *Driver) CloseIssue(ctx context.Context, owner, repo string, number int) error

func (*Driver) CommitFile

func (d *Driver) CommitFile(ctx context.Context, owner, repo, path, message string, content []byte) error

func (*Driver) CreateIssue

func (d *Driver) CreateIssue(ctx context.Context, owner, repo, title, body string, labels ...string) (*forge.Issue, error)

func (*Driver) GetIssue

func (d *Driver) GetIssue(ctx context.Context, owner, repo string, number int) (*forge.Issue, error)

Jump to

Keyboard shortcuts

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