github

package
v0.0.0-...-1d82e13 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package github is the GitHub adapter of internal/forge, built on the official SDK google/go-github (D48). bob authenticates as a GitHub App: an RS256 JWT signed with the app key (standard library, S16-5) mints installation tokens that GitHub expires after one hour and that are limited to one repository id.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (forge.Adapter, error)

New builds the adapter. It refuses a non-https base URL.

Types

type Config

type Config struct {
	BaseURL                      string
	AppID, InstallationID        int64
	PrivateKeyPEM, WebhookSecret forge.Secret
	HTTP                         *http.Client // nil: forge.HTTPClient()
}

Config configures one github integration.

Jump to

Keyboard shortcuts

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