github

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePRReference

func ValidatePRReference(ref string) (owner, repo string, prNumber int, err error)

ValidatePRReference validates and parses a GitHub PR reference Accepts formats: owner/repo#123, https://github.com/owner/repo/pull/123

Types

type Client

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

Client represents a GitHub API client

func NewClient

func NewClient(config Config) *Client

NewClient creates a new GitHub client

func (*Client) PostPRComment

func (c *Client) PostPRComment(owner, repo string, prNumber int, comment string, config Config, dryRun bool) error

PostPRComment posts a comment to a GitHub PR with retry logic

type Config

type Config struct {
	Token          string
	MaxRetries     int
	RetryDelay     time.Duration
	BackoffFactor  float64
	RequestTimeout time.Duration
}

Config holds configuration for GitHub client

Jump to

Keyboard shortcuts

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