fix: normalize bot email matching and preserve squash author#94
fix: normalize bot email matching and preserve squash author#94RadekManak wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RadekManak The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift-eng/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThe rebase bot now normalizes GitHub noreply-style bot emails before matching commits, and it preserves the current HEAD commit author when creating the final squashed commit. A new test covers bot emails with numeric prefixes and plus-addressing. ChangesBot email normalization and squash flow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (9 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Handle GitHub noreply prefixes without collapsing real plus-addressed emails, and keep the squashed bot commit author intact after rewriting history. Assisted-by: Cursor <cursoragent@cursor.com>
07b41e3 to
a68b86c
Compare
Summary
12345+bot@example.comstill match--bot-emailsWhy
Rebasebot normalized bot emails from commits differently than emails passed in
--bot-emails, which could prevent expected bot commit squashing. This change makes matching consistent while avoiding false matches for real plus-addressed emails.Made with Cursor
Summary by CodeRabbit
+tagaddresses intact while properly recognizing bot-style noreply formats.+committer email forms and verifying the resulting commit attribution and graph structure.