github

package
v0.0.0-...-80ccc60 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package github provides shared GitHub API clients for forge-aware features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context) *gh.Client

NewClient creates a GitHub API client using credentials from the environment (GITHUB_TOKEN, GH_TOKEN). It falls back to an unauthenticated client when no token is available.

func NewHTTPClient

func NewHTTPClient() *http.Client

NewHTTPClient creates an HTTP client with retry and backoff tuned for GitHub API usage. It retries transient server failures and GitHub rate-limit responses that include Retry-After.

Types

This section is empty.

Directories

Path Synopsis
Package releases lists GitHub release and tag metadata.
Package releases lists GitHub release and tag metadata.

Jump to

Keyboard shortcuts

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