fix(project): push SSE update when an issue on a board is closed/reopened #20
Reference in New Issue
Block a user
Delete Branch "fix/issue-19-sse-state"
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
Closing or reopening an issue did not notify project boards that carry it as a card — boards showed stale state until a manual reload. CloseIssue/ReopenIssue only published milestone events and the issue timeline notification, nothing project-scoped.
Adds a CardStateChanged project event, published per linked project from CloseIssue/ReopenIssue (best-effort; never fails the state change). The board frontend flips the issue-state octicon in place and refetches the affected column so state-filtered boards and counts stay correct. The dispatch check precedes the CardUnlinked branch so a close/reopen is not mistaken for a card removal. Also converts a pre-existing String#match to RegExp#exec in the same file to keep it lint-clean.
Test plan
Closes #19
Authored by Claude Opus 4.7 (assisting @oleks).