Skip to content

refactor(state): extract cached repo and status state#512

Merged
barrettruth merged 1 commit intomainfrom
refactor/state-module
Apr 28, 2026
Merged

refactor(state): extract cached repo and status state#512
barrettruth merged 1 commit intomainfrom
refactor/state-module

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

@barrettruth barrettruth commented Apr 28, 2026

Problem

lua/forge/init.lua still owned repo info, PR state, list cache, and status cache logic, so the top-level forge module remained the internal state container.

Solution

Move that cache and status ownership into lua/forge/state.lua, keep lua/forge/init.lua as a thin facade over the extracted state APIs, and add focused specs for the new module.

Problem:  still owned repo info, PR state, list
cache, and status cache logic, which kept top-level forge as the
internal state container.

Solution: move cache and status ownership into
and leave  as a thin facade over the extracted helpers.
Add focused specs for state caching and status refresh behavior.
@barrettruth barrettruth merged commit fe63059 into main Apr 28, 2026
3 checks passed
@barrettruth barrettruth deleted the refactor/state-module branch April 28, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant