Scheduled CI job to regenerate bestiary search index #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The bestiary search index (
data/bestiary/index.json) is generated offline byscripts/generate-bestiary-index.mjsfrom a local clone of the 5etools repository. Currently this is a manual process. A scheduled CI job could automate detection of upstream changes and open a PR when the index needs updating.Context
See ADR-004 (
docs/adr/004-on-demand-bestiary-loading.md). The index changes infrequently — new D&D source books release a few times per year — so this is low priority. The manual process works fine at current scale.Acceptance Criteria
generate-bestiary-index.mjs, and compares the output to the committed indexdata/bestiary/index.jsonNotes
data/bestiary/anddata/directories only) to minimize clone time