Skip to content

Parse PR comments as Markdown and ignore code and links #300

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

Merged
merged 3 commits into from
Jun 10, 2025

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Jun 4, 2025

This PR changes command parsing in bors to ignore commands in Markdown code blocks, backticks, links, images, etc. Because pulldown_cmark uses CowStr for the text, I had to get rid of the "zero-copy" errors in the parser, but that way way overkill anyway 😆

Fixes: #295

@Kobzol Kobzol requested a review from jieyouxu June 4, 2025 16:16
@Kobzol
Copy link
Member Author

Kobzol commented Jun 4, 2025

(Just looking for a sanity check that the list of ignored Markdown elements makes sense).

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently I lost this notification. Anyway, the ignored elements makes sense to me.

Though note that I haven't looked at this vs triagebot's ignore behavior, and it probably would make sense if both matched.

@Kobzol Kobzol added this pull request to the merge queue Jun 10, 2025
Merged via the queue into rust-lang:main with commit 00ad416 Jun 10, 2025
2 checks passed
@Kobzol Kobzol deleted the parser-markdown branch June 10, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New bors looks within markdown code blocks
2 participants