-
Notifications
You must be signed in to change notification settings - Fork 288
ROB-1939: do not bolden Holmes result #1958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughA new parameter Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/robusta/core/sinks/transformer.py (1)
115-133: LGTM! Clean backward-compatible change.The new parameter correctly gates the single-asterisk-to-bold conversion while preserving the default behavior for existing callers. The implementation is straightforward and correct.
Optional: Consider updating the docstring to mention the asterisk conversion behavior, since it's now a configurable part of the transformation:
@staticmethod - def to_github_markdown(markdown_data: str, add_angular_brackets: bool = True, single_asterisks_is_bold: bool = True) -> str: - """Transform all occurrences of slack markdown, <URL|LINK TEXT>, to github markdown [LINK TEXT](URL).""" + def to_github_markdown(markdown_data: str, add_angular_brackets: bool = True, single_asterisks_is_bold: bool = True) -> str: + """Transform slack markdown to GitHub markdown. + + Transforms <URL|LINK TEXT> to [LINK TEXT](URL). + Optionally converts *text* to **text** when single_asterisks_is_bold is True. + """
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/robusta/core/sinks/robusta/dal/model_conversion.py(2 hunks)src/robusta/core/sinks/transformer.py(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/robusta/core/sinks/robusta/dal/model_conversion.py (1)
src/robusta/core/sinks/transformer.py (2)
Transformer(32-299)to_github_markdown(115-133)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: run_tests
- GitHub Check: run_tests
- GitHub Check: Deploy docs
🔇 Additional comments (1)
src/robusta/core/sinks/robusta/dal/model_conversion.py (1)
126-126: LGTM! Consistent application across all Holmes results verified.Verification confirms all five
to_github_markdowncalls in the file are correctly handled:
- Lines 126, 149, 157: Holmes results properly disable asterisk-to-bold conversion
- Lines 186, 228: Non-Holmes calls correctly retain default behavior
No missed call sites found.
Tested manually in issue conversation.