github

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGHTKNEnabledFromEnv

func GetGHTKNEnabledFromEnv() (bool, error)

func GetGitHubTokenFromEnv

func GetGitHubTokenFromEnv() string

Types

type Client

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

func New

func New(ctx context.Context, logger *slog.Logger, token string, ghtknEnabled bool) *Client

func (*Client) GetContent

func (c *Client) GetContent(ctx context.Context, owner, repo, path, ref string) (string, error)

type RepositoriesService

type RepositoriesService interface {
	GetContents(ctx context.Context, owner, repo, path string, opts *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
}

type RepositoryContentGetOptions

type RepositoryContentGetOptions = github.RepositoryContentGetOptions

Jump to

Keyboard shortcuts

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