github

package
v0.0.0-...-227e906 Latest Latest
Warning

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

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

Documentation

Overview

Package github provides GitHub API client functionality for PR status and checks.

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 wraps the GitHub API client using gh CLI authentication.

func NewClient

func NewClient(repoRoot string) (*Client, error)

NewClient creates a new GitHub API client using gh CLI authentication. Uses gh's authentication flow (gh auth login) automatically.

func (*Client) GetPRForBranch

func (c *Client) GetPRForBranch(_ context.Context, branch string) (*PRStatus, error)

GetPRForBranch finds the PR associated with a branch.

type PRStatus

type PRStatus struct {
	Number int
	Title  string
	URL    string
	Review string
	Checks string
}

PRStatus represents PR status information.

Jump to

Keyboard shortcuts

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