github

package
v0.0.0-...-ced9dfd Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package github implements a SourceConnector for GitHub, providing read-only tools for searching code, issues/PRs, getting PR details and diffs, and reading file contents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector implements source.SourceConnector for GitHub.

func New

func New() *Connector

New creates a new GitHub source connector.

func (*Connector) Execute

func (c *Connector) Execute(ctx context.Context, tool string, params map[string]any, token []byte) (map[string]any, error)

func (*Connector) Provider

func (c *Connector) Provider() string

func (*Connector) Tools

func (c *Connector) Tools() []source.ToolDefinition

func (*Connector) WithBaseURL

func (c *Connector) WithBaseURL(url string) *Connector

WithBaseURL returns a copy with a custom GitHub API URL (for testing).

Jump to

Keyboard shortcuts

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