relnotes

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package relnotes fetches upstream release notes for bumped packages. It builds on the taglink layer: a change whose ReleaseURL points at a verified GitHub release tag gets the notes for that release — and, when the bump skips versions, the notes for every release in between (one GitHub API call per repository, opt-in via -changelogs).

Index

Constants

This section is empty.

Variables

View Source
var APIBase = "https://api.github.com"

APIBase is swappable for tests.

View Source
var Concurrency = 8

Concurrency is the number of repositories fetched in parallel.

View Source
var Fallback = false

Fallback also queries changes that lack a taglink-verified ReleaseURL but whose deps.dev source repo is on github.com, resolving the tag against the fetched release list itself. Used by the wasm playground, where taglink cannot run (git smart-HTTP has no CORS headers).

View Source
var MaxRepos = 40

MaxRepos caps how many distinct repositories one run will query, to stay well inside unauthenticated API rate limits.

Functions

func Annotate

func Annotate(diffs []diffx.FileDiff, token string) (warnings []string)

Annotate fills ReleaseNotes on changes whose ReleaseURL is a GitHub release-tag link. Best-effort: unreachable repos are skipped; the only surfaced warning is a rate-limit hint. token may be empty.

func Excerpt

func Excerpt(body string) string

Excerpt trims a release body down to a short, terminal-safe extract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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