Documentation ¶
Index ¶
- type Client
- func (c *Client) CloseIssue(number int) error
- func (c *Client) CreateIssue(title, body string, labels []string) (*github.Issue, error)
- func (c *Client) CreateLabel(name string) (*github.Label, error)
- func (c *Client) ListLabels() ([]*github.Label, error)
- func (c *Client) SearchIssue(identifier string) (*github.Issue, error)
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 ¶
NewClient creates a new GitHub API client using the provided OAuth2 token, owner and repo name.
func (*Client) CloseIssue ¶
CloseIssue closes the specified issue on the repository.
func (*Client) CreateIssue ¶
CreateIssue creates a new issue on the repository.
func (*Client) CreateLabel ¶
CreateLabel creates a new label on the repository.
func (*Client) ListLabels ¶
ListLabels lists the labels on the repository.
Click to show internal directories.
Click to hide internal directories.