Documentation
¶
Overview ¶
Package store reads and writes the plain-text PR list files used by prowl. Format is one PR URL per line; blank lines and lines beginning with `#` are ignored. A historical "<tag>|<url>" line format is also tolerated for reads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
Store is a pair of plain-text files: an active list and a reviewed list.
func New ¶
New constructs a Store and ensures both files exist. It also migrates pre-existing legacy files (prs-unmerged.txt, prs-merged.txt, prs-closed.txt) into the new active/reviewed layout.
func (*Store) Add ¶
Add appends a URL to the active list. Returns false if the URL is already tracked in either list.
func (*Store) MoveActiveToReviewed ¶
MoveActiveToReviewed moves the given URLs from the active list to the reviewed list, preserving line order. URLs that aren't present in active are silently ignored.