Documentation
¶
Overview ¶
Package store locates live-pr's user-level runtime data for one repo + branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateLegacy ¶
MigrateLegacy moves data from the old repository-local .live-pr/ layout. Legacy config.toml is renamed to .live-pr.toml when possible; the old path remains readable through config.Load if migration cannot move it.
func NavigatorCache ¶
NavigatorCache is the repository-wide PR list and remote snapshot cache.
func PullRequestReviewDraft ¶ added in v0.2.0
PullRequestReviewDraft is an unpublished review isolated by pull-request number.
Types ¶
type Store ¶
type Store struct {
Root string // repo top level
Branch string // current branch
Dir string // user-level state directory for this repo + branch
}
Layout lives outside the repository:
$XDG_STATE_HOME/live-pr/repos/<repo>/<branch>/ timeline.jsonl conclusion.md
The repository path is hashed so two repositories with the same directory name cannot share state.
func Discover ¶
Discover resolves the store for the current repo and branch, creating the per-branch directory if needed.
func (*Store) Conclusion ¶
Conclusion is the path to the pinned current conclusion.
func (*Store) GitHubCache ¶
GitHubCache is the path to mutable remote state kept separate from the timeline.
func (*Store) WriteConclusion ¶
WriteConclusion atomically replaces the final pull-request summary.