github

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGithubClient

func NewGithubClient(cfg *config.Github) *github.Client

Types

type Client added in v0.7.0

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

func NewClient added in v0.7.0

func NewClient(cfg *config.Github, client *github.Client, logger *slog.Logger) *Client

func (*Client) GetMostUpdatedIssues added in v0.7.0

func (p *Client) GetMostUpdatedIssues(ctx context.Context, count int, since time.Time) ([]*github.Issue, *github.Response, error)

GetMostUpdatedIssues fetches open issues from the configured repository, sorted by update time (oldest first).

Parameters:

  • count: maximum number of issues to return per page. Values < 1 default to 50.
  • since: only issues updated after this time are returned. Zero value fetches all.

Errors are classified via mapError: transient failures (network, rate limit, 5xx) carry httperr sentinels, permanent failures (401, 404, 422) are returned as-is. The original GitHub error is preserved in the chain for errors.As access.

On success, resp carries HTTP metadata (rate limit headers, pagination). On error, both issues and resp are nil.

Jump to

Keyboard shortcuts

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