feat(enrichment): forward linked issue envelope to REES#1863
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-06-30 17:56:08 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 7 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
90c806f to
10f6f8e
Compare
Resolve pr.linkedIssues into a compact linkedIssue payload via the local issue cache so REES history can correlate PR work with issue context. Co-authored-by: Cursor <cursoragent@cursor.com>
e750f12 to
952eb33
Compare
JSONbored
left a comment
There was a problem hiding this comment.
Please fix this and resubmit as a new PR:
The most notable issue is that the processor now resolves the linked issue before checking whether enrichment is enabled, which weakens the stated flag-off behavior but does not break review output because failures are swallowed into the number-only or undefined path.
Move resolveEnrichmentLinkedIssue inside the isEnrichmentEnabled branch so flag-off reviews do no extra DB work. Addresses JSONbored review on JSONbored#1863. Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(enrichment): forward linked issue envelope to REES Resolve pr.linkedIssues into a compact linkedIssue payload via the local issue cache so REES history can correlate PR work with issue context. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(enrichment): derive linked issue from PR body when unset When pr.linkedIssues is empty, parse Fixes #N from the PR description so REES history still receives linkedIssue context before sync catches up. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(enrichment): gate linked-issue resolution behind enrichment flag Move resolveEnrichmentLinkedIssue inside the isEnrichmentEnabled branch so flag-off reviews do no extra DB work. Addresses JSONbored review on #1863. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: ghost <49853598+JSONbored@users.noreply.github.com>
Summary
When a PR has
linkedIssues, resolve the primary issue from the local cache and forward a compactlinkedIssueenvelope (number,title,body) to REES so thehistoryanalyzer can correlate PR work with issue context.Issue
Depends on
Stacks cleanly after #1862 (PR body passthrough) — rebase if both touch
processors.ts.Validation
Test plan
resolveEnrichmentLinkedIssuereturns cached envelope or number-only fallbackbuildReviewEnrichmentincludeslinkedIssuein POST body