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

github

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package github wraps the `gh` CLI to fetch pull request diffs and file contents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTODOs

func CollectTODOs(fetcher PRFetcher, repo, pr string) ([]types.TODO, error)

Types

type Client

type Client struct{}

func NewClient

func NewClient() *Client

func (*Client) FetchChangedFileContents

func (c *Client) FetchChangedFileContents(repo, pr, diffOutput string) (map[string][]byte, error)

func (*Client) FetchDiff

func (c *Client) FetchDiff(repo, pr string) (string, error)

type PRFetcher

type PRFetcher interface {
	FetchDiff(repo, pr string) (string, error)
	FetchChangedFileContents(repo, pr, diffOutput string) (map[string][]byte, error)
}

Jump to

Keyboard shortcuts

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