github

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package github implements the forge operations over the gh CLI. It depends only on internal/domain and is wired in by forge.Select.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client talks to GitHub through the gh CLI.

func New

func New(cfg config.GitHubConfig) (*Client, error)

New verifies gh is available and returns a Client.

func (*Client) GetIssue

func (c *Client) GetIssue(ctx context.Context, r domain.Repo, id string) (domain.Issue, error)

func (*Client) GetPR

func (c *Client) GetPR(ctx context.Context, r domain.Repo, number int) (domain.PullRequest, error)

func (*Client) ListChecks

func (c *Client) ListChecks(ctx context.Context, r domain.Repo, number int) ([]domain.Check, error)

func (*Client) ListComments

func (c *Client) ListComments(ctx context.Context, r domain.Repo, number int) ([]domain.Comment, error)

func (*Client) Name

func (c *Client) Name() string

func (*Client) OpenPR

func (*Client) PRForBranch

func (c *Client) PRForBranch(ctx context.Context, r domain.Repo, branch string) (*domain.PullRequest, error)

func (*Client) PostComment

func (c *Client) PostComment(ctx context.Context, r domain.Repo, number int, body string) (domain.Comment, error)

func (*Client) WatchChecks

func (c *Client) WatchChecks(ctx context.Context, r domain.Repo, number int, onTick func(domain.CheckSummary)) (domain.CheckSummary, error)

Jump to

Keyboard shortcuts

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