github

package
v0.8.34 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 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

func IsMilestoneAlreadyExists added in v0.6.7

func IsMilestoneAlreadyExists(err error) bool

IsMilestoneAlreadyExists reports whether err is a GitHub ErrorResponse indicating that a milestone with the requested title already exists. It inspects the structured Errors[] payload (Code == "already_exists") rather than string-matching the message.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements platform.Platform for GitHub.

func New

func New(owner, repo string) (*Client, error)

New creates a new GitHub client. Auth priority: GITHUB_TOKEN env var > gh CLI auth token.

func (*Client) AuthenticatedLogin added in v0.8.25

func (c *Client) AuthenticatedLogin(ctx context.Context) (string, error)

AuthenticatedLogin returns the login for the token used by this client.

func (*Client) Checks

func (c *Client) Checks() platform.CheckService

func (*Client) HTTPClient added in v0.2.5

func (c *Client) HTTPClient() *http.Client

HTTPClient returns the authenticated HTTP client used by this GitHub client.

func (*Client) Issues

func (c *Client) Issues() platform.IssueService

func (*Client) Labels

func (c *Client) Labels() platform.LabelService

func (*Client) Milestones

func (c *Client) Milestones() platform.MilestoneService

func (*Client) PullRequests

func (c *Client) PullRequests() platform.PullRequestService

func (*Client) Repository

func (c *Client) Repository() platform.RepositoryService

func (*Client) Runners

func (c *Client) Runners() platform.RunnerService

func (*Client) Workflows

func (c *Client) Workflows() platform.WorkflowService

Jump to

Keyboard shortcuts

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