github

package
v0.0.0-...-e9c023d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRepoURL

func ParseRepoURL(repoURL string) (owner, repo string, err error)

Types

type Client

type Client struct {
	Owner     string
	Repo      string
	Token     string
	ForkOwner string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token, repoURL, forkOwner string) (*Client, error)

func (*Client) AssignReviewers

func (c *Client) AssignReviewers(ctx context.Context, prNumber int, team string) error

func (*Client) CreatePullRequest

func (c *Client) CreatePullRequest(ctx context.Context, title, body, head, base string) (string, int, error)

type PRCreator

type PRCreator interface {
	CreatePullRequest(ctx context.Context, title, body, head, base string) (string, int, error)
	AssignReviewers(ctx context.Context, prNumber int, team string) error
}

Jump to

Keyboard shortcuts

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