Documentation
¶
Overview ¶
Package github provides a GitHub skill for interacting with GitHub repositories.
This skill provides tools for managing issues, pull requests, and searching code. Authentication is via a GitHub personal access token.
Example usage:
import "github.com/plexusone/omni-github/omniskill/github"
skill := github.New(github.Config{
Token: os.Getenv("GITHUB_TOKEN"),
})
if err := skill.Init(ctx); err != nil {
log.Fatal(err)
}
defer skill.Close()
// Use with an agent
agent.RegisterSkill(skill)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Token is the GitHub personal access token.
// Required for authenticated API access.
Token string
// BaseURL is the GitHub API base URL.
// Defaults to https://api.github.com for github.com.
// Set to your GitHub Enterprise URL for GHE (e.g., https://github.mycompany.com/api/v3).
BaseURL string
// DefaultOwner is the default repository owner for operations.
// Can be overridden per-tool call.
DefaultOwner string
// DefaultRepo is the default repository name for operations.
// Can be overridden per-tool call.
DefaultRepo string
}
Config configures the GitHub skill.
type Skill ¶
type Skill struct {
// contains filtered or unexported fields
}
Skill provides GitHub integration tools.
func (*Skill) Description ¶
Description returns the skill description.
Click to show internal directories.
Click to hide internal directories.