Documentation ¶
Index ¶
- type Client
- func (gh *Client) CreateRelease(tag, owner, repository string, draft, notes bool) (*github.RepositoryRelease, error)
- func (gh *Client) GetLatestTag(owner, repository string, defaultTag string) (string, error)
- func (gh *Client) GetPullRequestByNumber(prNumber int, owner, repository string) (*github.PullRequest, error)
- func (gh *Client) GetPullRequestLabels(prNumber int, owner, repository string) ([]*github.Label, 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 NewGitHubClient ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.