forge

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultTimeout = 30 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(enabled string, ttl, timeout time.Duration) *Manager

func (*Manager) PRs

func (man *Manager) PRs(ctx context.Context, repoPath string) []model.PRInfo

PRs returns the cached pull requests for the repo, refreshing them when the cache entry expired. While a refresh is in flight concurrent callers get the last known value instead of stacking additional subprocesses.

type Provider

type Provider interface {
	Available(ctx context.Context) bool
	PRs(ctx context.Context) ([]model.PRInfo, error)
}

Jump to

Keyboard shortcuts

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