github

package
v0.71.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package github implements port.Forge for GitHub over stdlib net/http, so changelog enrichment needs no `gh` CLI on PATH. See ADR-0043.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forge

type Forge struct {
	// contains filtered or unexported fields
}

Forge is the GitHub implementation of port.Forge.

func New

func New(id port.ForgeIdentity, client *http.Client) *Forge

New constructs a GitHub forge. A nil client gets a default with a 30s timeout, matching the other forges.

func (*Forge) ChangeURL

func (f *Forge) ChangeURL(number int) string

func (*Forge) CommitURL

func (f *Forge) CommitURL(sha string) string

func (*Forge) CompareURL

func (f *Forge) CompareURL(from, to string) string

func (*Forge) Enrich

func (f *Forge) Enrich(commits []port.Commit, _ string) (port.Enrichment, error)

Enrich resolves each commit's associated pull request and linked commit-author handle via batched GraphQL queries. ref is unused: GitHub resolves per-commit, not via a ref-anchored walk.

func (*Forge) Identity

func (f *Forge) Identity() port.ForgeIdentity

func (*Forge) Type

func (f *Forge) Type() string

Jump to

Keyboard shortcuts

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