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 ¶
- type Forge
- func (f *Forge) ChangeURL(number int) string
- func (f *Forge) CommitURL(sha string) string
- func (f *Forge) CompareURL(from, to string) string
- func (f *Forge) Enrich(ctx context.Context, commits []port.Commit, _ string) (port.Enrichment, error)
- func (f *Forge) Identity() port.ForgeIdentity
- func (f *Forge) Type() string
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) CompareURL ¶
func (*Forge) Enrich ¶
func (f *Forge) Enrich(ctx context.Context, 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