prcache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() map[string]PRMeta

Load reads the PR cache from disk. Returns an empty map on any error.

func Save

func Save(cache map[string]PRMeta)

Save writes the PR cache to disk (best-effort).

func Set

func Set(repo string, pr int, title, author string)

Set stores PR metadata for the given repo and PR number.

Types

type PRMeta

type PRMeta struct {
	Title  string `json:"title"`
	Author string `json:"author"`
}

PRMeta holds cached PR metadata for display purposes.

func Get

func Get(repo string, pr int) (PRMeta, bool)

Get looks up PR metadata by repo short name and PR number.

Jump to

Keyboard shortcuts

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