github

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 13 Imported by: 0

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

type Server struct {
	*registry.Base
	// contains filtered or unexported fields
}

Server implements the Toolbox contract for GitHub.

func New

func New(workspace, token, version string) *Server

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 (*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.

Jump to

Keyboard shortcuts

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