refactor(ci): share request and buffer lifecycle helpers across CI views #531

Closed
opened 2026-04-29 02:09:40 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-04-29 02:09:40 +00:00

lua/forge/log.lua, lua/forge/ci_history.lua, and lua/forge/pr_checks.lua each implement their own small request/buffer lifecycle stack.

Common repeated patterns include:

  • buf_data tables
  • request ID tracking
  • process cleanup / cancellation
  • public vim.b.forge buffer metadata setup
  • current-row navigation helpers

This issue is for extracting shared internal helpers for CI-view request and buffer lifecycle management so these read-only surfaces stop re-implementing the same mechanics independently.

The goal is not to redesign the user-facing buffers, only to reduce duplicated lifecycle code and make later changes safer.

`lua/forge/log.lua`, `lua/forge/ci_history.lua`, and `lua/forge/pr_checks.lua` each implement their own small request/buffer lifecycle stack. Common repeated patterns include: - `buf_data` tables - request ID tracking - process cleanup / cancellation - public `vim.b.forge` buffer metadata setup - current-row navigation helpers This issue is for extracting shared internal helpers for CI-view request and buffer lifecycle management so these read-only surfaces stop re-implementing the same mechanics independently. The goal is not to redesign the user-facing buffers, only to reduce duplicated lifecycle code and make later changes safer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/forge.nvim#531
No description provided.