gh

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 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 NewGitHubClient

func NewGitHubClient(token string) (*Client, error)

NewGitHubClient returns a new GitHub client

func (*Client) CreateRelease

func (gh *Client) CreateRelease(tag, owner, repository string, draft, notes bool) (*github.RepositoryRelease, error)

CreateRelease creates a new release

func (*Client) GetLatestTag

func (gh *Client) GetLatestTag(owner, repository string, defaultTag string) (string, error)

GetLatestTag returns the latest tag for a given repository

func (*Client) GetPullRequestByNumber

func (gh *Client) GetPullRequestByNumber(prNumber int, owner, repository string) (*github.PullRequest, error)

GetPullRequestByNumber returns the PR for a given PR number

func (*Client) GetPullRequestLabels

func (gh *Client) GetPullRequestLabels(prNumber int, owner, repository string) ([]*github.Label, error)

GetPullRequestLabels returns the labels for a given PR

Jump to

Keyboard shortcuts

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