Skip to content

Conversation

@mhucka
Copy link
Collaborator

@mhucka mhucka commented Jan 2, 2026

This adds a simple work to clean up the Dependabot description bodies to remove unwanted sections (like the list of commands) and convert the HTML body to Markdown.

The algorithm is simple: look for <details><summary>Commits</summary>, which marks the beginning of a section listing the commits in the upstream repository, and just delete everything in the Dependabot description from that point to the end. This gets rid of the commits list, the Dependabot command summary, and miscellaneous other bits that we don't find useful.

mhucka added 3 commits January 2, 2026 19:20
This adds a simple Python program to clean up the Dependabot description
bodies to remove unwanted sections (like the list of commands) and
convert the HTML body to Markdown.

Pytest test cases are also provided.
@github-actions github-actions bot added the size: L 250< lines changed <1000 label Jan 2, 2026
mhucka added 3 commits January 2, 2026 19:35
Turns out it's easy to process these Markdown bodies by looking for the
"Commits" section and deleting it and everything after it, then
converting what's left to Markdown. The script is short enough that it
can be inlined in the workflow YAML file.
@github-actions github-actions bot added size: M 50< lines changed <250 and removed size: L 250< lines changed <1000 labels Jan 24, 2026
@mhucka mhucka closed this Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant