github

package
v0.0.0-...-909f31c Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(token, owner, repo string) *Client

NewClient creates a new GitHub API client using the provided OAuth2 token, owner and repo name.

func (*Client) CloseIssue

func (c *Client) CloseIssue(number int) error

CloseIssue closes the specified issue on the repository.

func (*Client) CreateIssue

func (c *Client) CreateIssue(title, body string, labels []string) (*github.Issue, error)

CreateIssue creates a new issue on the repository.

func (*Client) CreateLabel

func (c *Client) CreateLabel(name string) (*github.Label, error)

CreateLabel creates a new label on the repository.

func (*Client) ListLabels

func (c *Client) ListLabels() ([]*github.Label, error)

ListLabels lists the labels on the repository.

func (*Client) SearchIssue

func (c *Client) SearchIssue(identifier string) (*github.Issue, error)

SearchIssue searches for open issues where the identifier is included in the title

Jump to

Keyboard shortcuts

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