github

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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) CommitFileToBranch

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

func (*Driver) CommitFileToFork added in v0.32.0

func (d *Driver) CommitFileToFork(ctx context.Context, forkOwner, forkRepo, branch, path, message string, content []byte) error

func (*Driver) CreateBranch

func (d *Driver) CreateBranch(ctx context.Context, owner, repo, branch string) error

func (*Driver) CreateChangeProposal

func (d *Driver) CreateChangeProposal(ctx context.Context, owner, repo, title, body, head, base string) (*forge.ChangeProposal, error)

func (*Driver) CreateFork added in v0.32.0

func (d *Driver) CreateFork(ctx context.Context, owner, repo, forkName string) (string, error)

func (*Driver) CreateForkChangeProposal added in v0.32.0

func (d *Driver) CreateForkChangeProposal(ctx context.Context, baseOwner, baseRepo, title, body, forkOwner, headBranch, baseBranch string) (*forge.ChangeProposal, error)

func (*Driver) CreateIssue

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

func (*Driver) GetFileContent

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

func (*Driver) GetIssue

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

func (*Driver) SubmitPullRequestReview

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

Jump to

Keyboard shortcuts

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