Repository navigation
Clean Dependabot PR descriptions automatically - #10
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The workflow is narrowly scoped, validates output before updating descriptions, and has no identified blocking issues.
No open issues 🎉
What changed in this PR
Adds a workflow to remove generated HTML from Dependabot PR descriptions before it carries into squash commit messages, while preserving Markdown summaries and version tables.
Changes:
- Runs when Dependabot PRs are opened, reopened, synchronized, or edited.
- Removes generated details and boilerplate, rejecting empty output or remaining HTML.
- Uses a pinned action with PR-write permissions and no checkout or execution of PR code.
| File | Description |
|---|---|
.github/workflows/clean-dependabot.yml |
Adds guarded, metadata-only cleanup of Dependabot PR descriptions. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot descriptions contain generated HTML that gets copied into squash commit messages. Clean them automatically when a PR is opened, reopened, updated, or edited, preserving Markdown summaries and version tables.
The workflow only edits PR metadata and aborts if the result is empty or still contains HTML. It uses a pinned action with
pull-requests: writeand does not check out PR code.Validation:
f144425toc098726in /docker in the docker group #6, build(deps): bump the minor-and-patch group with 3 updates #7, and build(deps): bump the actions group with 6 updates #9; verified summaries and tables are retained and repeated runs make no changes.actionlintv1.7.12 andgit diff --checkpass. The linter's outdatedubuntu-26.04label warning was excluded; this is the repository's existing runner and is supported by GitHub.