github

package
v0.0.0-...-368c7d8 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGithubToken

func GetGithubToken(ctx context.Context) (string, error)

GetGithubToken retrieves the GitHub token from environment variables or the gh CLI. The precedence order is: 1. MANUAL_PAT (Manually provided Personal Access Token) 2. GITHUB_TOKEN (Standard GitHub Actions or environment token) 3. OAUTH_PAT (Token from OAuth flow) 4. gh auth token (Fallback to gh CLI credential helper)

func NewClient

func NewClient(ctx context.Context) (*githubv39.Client, error)

NewClient creates a new GitHub client using the token retrieved by GetGithubToken.

Types

This section is empty.

Jump to

Keyboard shortcuts

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