github

package
v0.0.0-...-7cc47b0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Path string
	URL  string
}

type Client

type Client struct {
	*github.Client
	// contains filtered or unexported fields
}

Client is the client for interacting with the GitHub API

func NewClient

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

NewClient creates and initializes a new GitHubClient

func (*Client) CreatePullRequest

func (c *Client) CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)

CreatePullRequest creates a pull request in the repository specified by repoURL. The return value is the pull request URL.

func (*Client) CreateRelease

func (c *Client) CreateRelease(_ context.Context, input *Release) error

CreateRelease creates a new release object in the GitHub API

func (*Client) GetRelease

func (c *Client) GetRelease(_ context.Context, tag string) (*Release, error)

GetRelease queries the GitHub API for a specified release object

type Release

type Release struct {
	Name                 string
	Description          string
	Assets               []*Asset
	Commit               string
	GenerateReleaseNotes bool
	MakeLatest           string
}

Jump to

Keyboard shortcuts

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