github

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 8 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