githubretry

package
v0.27.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTransientServerError

func IsTransientServerError(err error) bool

IsTransientServerError identifies GitHub responses whose mutation outcome may be unknown.

func Retry

func Retry(ctx context.Context, backoff time.Duration, operation func() error) error

Retry honors GitHub rate limits and retries transient GitHub server errors. Other errors are retried only if backoff is positive.

func RetryGitPush

func RetryGitPush(ctx context.Context, repositoryURL string, operation func() error) error

RetryGitPush retries a GitHub server failure while preserving permanent push errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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