Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package github provides GitHub API integration via the gh CLI. It supports looking up pull request metadata such as branch names to enable the "gtl review <PR#>" workflow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PRInfo

type PRInfo struct {
	Number      int    `json:"number"`
	Title       string `json:"title"`
	HeadRefName string `json:"headRefName"`
}

func ListOpenPRs

func ListOpenPRs() ([]PRInfo, error)

ListOpenPRs returns open PRs via the gh CLI. Returns nil on any failure (gh not installed, not in a repo, network error) to keep tab completion non-blocking.

func LookupPR

func LookupPR(number int) (*PRInfo, error)

LookupPR fetches PR metadata using the gh CLI. Returns the head branch name.

Jump to

Keyboard shortcuts

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