github

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

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 is a GitHub REST API client scoped to code-forge (pull request) operations. It is deliberately separate from the issue-tracker client so the forge and tracker capabilities can be wired and evolve independently, even though both talk to the same GitHub API.

func New

func New(baseURL, token string) *Client

New creates a GitHub forge client with the given base URL and token.

func (*Client) CreatePullRequest

func (c *Client) CreatePullRequest(ctx context.Context, pr *forge.PullRequest) (*forge.PullRequest, error)

CreatePullRequest implements forge.Creator via the GitHub pulls API.

func (*Client) SetHTTPDoer

func (c *Client) SetHTTPDoer(doer apiclient.HTTPDoer)

SetHTTPDoer replaces the HTTP client used for API requests.

Jump to

Keyboard shortcuts

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