fix: attribute PR channel merges to merged_by, not author - #64
Conversation
List-PRs omits merged_by, so channel edits fell back to the PR author.
Fetch GET /pulls/{n} for the real merger, and never blame the author when
the merger is still unknown.
Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughMerged pull request ingestion now fetches missing merger details. Lifecycle notifications no longer attribute merges to the PR author or display ChangesMerged pull request actor handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Merged PR notifications now use the actual merger when available and otherwise omit attribution rather than naming the PR author. The change is covered across ingestion and notification behavior with no remaining merge-readiness risk identified. Sequence Diagram(s)sequenceDiagram
participant GitHub
participant RESTAdapter
participant NotificationEngine
participant Discord
GitHub->>RESTAdapter: List merged pull requests
RESTAdapter->>GitHub: Fetch details when merged_by is absent
GitHub-->>RESTAdapter: Return merged_by
RESTAdapter->>NotificationEngine: Emit pr_merged event
NotificationEngine->>Discord: Update lifecycle announcement
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
merged_by, so Discord channel edits fell back to the PR author (e.g. OrgExplorer #214 showed@jikrana1instead ofRi1tik).pr_mergedingestion, if list payload lacksmerged_by, fetchGET /pulls/{n}and store the real merger.Merged by @useronly when known, otherwise justMerged.Test plan
pytest tests/test_notifications.py tests/test_github_ingestion_lifecycle_events.py(68 passed)Made with Cursor
Summary by CodeRabbit