github

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(token string) *gh.Client

func TokenFromEnv

func TokenFromEnv() string

Types

type PullRequestCommenter

type PullRequestCommenter struct {
	Issues issueCommentClient
}

func NewPullRequestCommenter

func NewPullRequestCommenter(client *gh.Client) PullRequestCommenter

func (PullRequestCommenter) Post

func (c PullRequestCommenter) Post(ctx context.Context, repo Repository, prNumber int, body string) error

type Repository

type Repository struct {
	Owner string
	Name  string
}

func ParseRepository

func ParseRepository(value string) (Repository, error)

func ResolveRepository

func ResolveRepository(root string, explicit string, configured string) (Repository, string, error)

func (Repository) String

func (r Repository) String() string

Jump to

Keyboard shortcuts

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