Documentation
¶
Index ¶
- type Action
- func (x *Action) Configure(ctx context.Context) error
- func (x *Action) Flags() []cli.Flag
- func (x *Action) GetConfigs() []*RepositoryConfig
- func (x *Action) Helper() *cli.Command
- func (x *Action) LogValue() slog.Value
- func (x *Action) Name() string
- func (x *Action) Prompt(ctx context.Context) (string, error)
- func (x *Action) Run(ctx context.Context, name string, args map[string]any) (map[string]any, error)
- func (x *Action) SetConfigs(configs []*RepositoryConfig)
- func (x *Action) SetGitHubClient(client *github.Client)
- func (x *Action) SetTestData(appID, installationID int64, privateKey string, configFiles []string)
- func (x *Action) Specs(ctx context.Context) ([]gollem.ToolSpec, error)
- type CodeSearchResult
- type Config
- type ContentResult
- type IssueSearchResult
- type RepositoryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
func (*Action) GetConfigs ¶
func (x *Action) GetConfigs() []*RepositoryConfig
func (*Action) SetConfigs ¶
func (x *Action) SetConfigs(configs []*RepositoryConfig)
func (*Action) SetGitHubClient ¶
Helper methods for testing
func (*Action) SetTestData ¶
type CodeSearchResult ¶
type CodeSearchResult struct {
Repository string `json:"repository"`
Path string `json:"path"`
HTMLURL string `json:"html_url"`
Matches []string `json:"matches"`
Language string `json:"language,omitempty"`
LastModified time.Time `json:"last_modified,omitempty"`
}
CodeSearchResult represents a code search result
type Config ¶
type Config struct {
Repositories []*RepositoryConfig `yaml:"repositories" json:"repositories"`
}
Config represents the GitHub tool configuration
type ContentResult ¶
type ContentResult struct {
Repository string `json:"repository"`
Path string `json:"path"`
Content string `json:"content"`
SHA string `json:"sha"`
HTMLURL string `json:"html_url"`
Size int `json:"size"`
}
ContentResult represents file content result
type IssueSearchResult ¶
type IssueSearchResult struct {
Repository string `json:"repository"`
Number int `json:"number"`
Title string `json:"title"`
State string `json:"state"`
HTMLURL string `json:"html_url"`
User string `json:"user"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
IsPR bool `json:"is_pr"`
Body string `json:"body,omitempty"`
Labels []string `json:"labels,omitempty"`
}
IssueSearchResult represents an issue/PR search result
type RepositoryConfig ¶
type RepositoryConfig struct {
Owner string `yaml:"owner" json:"owner"`
Repository string `yaml:"repository" json:"repository"`
Description string `yaml:"description" json:"description"`
DefaultBranch string `yaml:"default_branch,omitempty" json:"default_branch,omitempty"`
}
RepositoryConfig represents a GitHub repository configuration
Click to show internal directories.
Click to hide internal directories.