github

package
v1.0.57 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGithubURL = "https://github.com"
)

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 string, baseURL string) (*Client, error)

func (*Client) GetCurrentUser

func (c *Client) GetCurrentUser(ctx context.Context) (*ghapi.User, *ghapi.Response, error)

func (*Client) GetPRFeedBack

func (c *Client) GetPRFeedBack(ctx context.Context, org string, repo string, prNum int) ([]messages.PRFeedback, error)

func (*Client) GetRepository added in v1.0.43

func (c *Client) GetRepository(ctx context.Context, owner string, repo string) (*ghapi.Repository, *ghapi.Response, error)

func (*Client) GetThreadComments

func (c *Client) GetThreadComments(ctx context.Context, threadID string) ([]messages.Comment, error)

func (*Client) ListBranches

func (c *Client) ListBranches(ctx context.Context, owner string, repo string, opts *ghapi.BranchListOptions) ([]*ghapi.Branch, *ghapi.Response, error)

func (*Client) ListOrganizations

func (c *Client) ListOrganizations(ctx context.Context, page int, perPage int) ([]*ghapi.Organization, *ghapi.Response, error)

func (*Client) SearchRepositories

func (c *Client) SearchRepositories(ctx context.Context, query string, opts *ghapi.SearchOptions) (*ghapi.RepositoriesSearchResult, *ghapi.Response, error)

Jump to

Keyboard shortcuts

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