Documentation ¶ Overview ¶ Package github wraps the `gh` CLI to fetch pull request diffs and file contents. Index ¶ func CollectTODOs(fetcher PRFetcher, repo, pr string) ([]types.TODO, error) type Client func NewClient() *Client func (c *Client) FetchChangedFileContents(repo, pr, diffOutput string) (map[string][]byte, error) func (c *Client) FetchDiff(repo, pr string) (string, error) type PRFetcher 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) } Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.