Show release context in plan comment#
Plan phase complete. Technical plan is ready.
Problem#
When a task belongs to an active release, the plan comment posted at the end of the plan phase contains no release information. Developers and reviewers have no immediate visibility into which release a task is associated with, its RC branch target, or directive.
Task / Link#
Closes #470
Changes#
release.service.ts: ExpandedfindActiveForTask()return type to includekey,title,status,directivealongside existingreleaseId,rcBranch,baseBranchgithub.service.ts: AddedfindCommentByPrefix()method that paginates issue comments and returns the first matching{ id, body }ornullphase-hooks.service.ts: InjectedReleaseService; updatedonPlanComplete()to append a## Release Contextsection (human-readable + collapsed JSON metadata) to the existing plan comment, with fallback to a standalone comment if the plan comment is not foundphase-hooks.module.ts: ImportedReleaseModuleto makeReleaseServiceavailablerelease.service.spec.ts: UpdatedfindActiveForTaskassertions to cover the new fieldsphase-hooks.service.spec.ts: Added tests for release-present (edit comment), release-present + no plan comment (standalone post), no release (simple comment), and service error fallback
Notes#
- If
findCommentByPrefixreturns null (plan comment not yet visible due to propagation lag), the release context is posted as a standalone comment — graceful fallback. findCommentByPrefixpaginates atper_page=100to handle issues with many comments.
Testing#
- Unit tests: all 804 pass (
npm run test) - Lint: zero warnings (
npm run lint)