Documentation
¶
Overview ¶
Package github implements the codefly toolbox contract for GitHub — pure Go via the google/go-github SDK (no `gh` binary, matching the toolbox convention that git/docker/web are all SDK clients, not CLI shell-outs).
owner/repo are derived from the workspace's `origin` remote (go-git), and can be overridden per call. Auth is a GitHub token (GITHUB_TOKEN), added via a transport — no oauth2 dependency.
gortk does the compaction: PR/issue lists are normalized to a small JSON array and flattened to one line each by a gortk `json` Spec; a PR body is run through the gortk "gh" line filter to strip badge rows, images, and HTML comments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server implements the Toolbox contract for GitHub.
func New ¶
New returns a Server using the given GitHub token, scoped to a workspace whose origin remote names the default owner/repo.
func (*Server) Identity ¶
func (s *Server) Identity(_ context.Context, _ *toolboxv0.IdentityRequest) (*toolboxv0.IdentityResponse, error)
func (*Server) Tools ¶
func (s *Server) Tools() []*registry.ToolDefinition
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
github-toolbox
command
Command github-toolbox is the standalone binary form of the codefly github toolbox.
|
Command github-toolbox is the standalone binary form of the codefly github toolbox. |