githubclient

package
v0.0.0-...-1c5d5e9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOwnerRepo

func ParseOwnerRepo(remote string) (string, string)

ParseOwnerRepo parses common remote URL forms and returns owner, repo.

Types

type Client

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

func NewClient

func NewClient(token string) *Client

func (*Client) AddAssignees

func (c *Client) AddAssignees(ctx context.Context, remote string, issueNumber int, assignees []string) error

AddAssignees adds assignees to an issue/PR.

func (*Client) AddLabels

func (c *Client) AddLabels(ctx context.Context, remote string, issueNumber int, labels []string) error

AddLabels appends labels to an issue/PR.

func (*Client) CreatePR

func (c *Client) CreatePR(ctx context.Context, remote, title, body, head, base string) (*github.PullRequest, error)

CreatePR creates a pull request and returns the created PR object.

Jump to

Keyboard shortcuts

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