Summarize changes in regeneration pull requests - #132
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds automated, diff-based summaries for advisory regeneration pull requests, keeping the standing regeneration PR body synchronized with the current data/advisories.json semantic changes.
Changes:
- Introduces
AdvisoryChangeSummaryto render a Markdown summary (added/updated/removed by source, index counts, and capped affected formulae list). - Adds
rake advisories:summaryand wires it into the regeneration workflow to generate a body file and usegh pr create/edit --body-file. - Adds/updates specs to validate the workflow behavior and the summary rendering logic.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
spec/workflows_spec.rb |
Updates workflow assertions and adds coverage for body refresh via gh pr edit --body-file. |
spec/advisory_change_summary_spec.rb |
New unit tests for summary rendering, formatting, caps, and duplicate-id detection. |
Rakefile |
Adds advisories:summary task that compares HEAD:data/advisories.json vs working tree. |
lib/advisory_change_summary.rb |
New renderer for regeneration PR summaries from advisory index JSON. |
.github/workflows/regenerate.yml |
Generates PR body file during regeneration and uses it for create/update PR body. |
馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
p-linnane
approved these changes
Aug 15, 2026
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.
Generate regeneration pull request descriptions from semantic changes to
data/advisories.json. The description reports added, updated and removed advisories by source, the resulting index size, and a capped list of affected formulae.Refresh the description when the standing regeneration branch is force-pushed so it stays in sync with the current diff.
For example:
AI/LLM disclosure: I used Codex (GPT-5) to help implement this change. I reviewed the diff and exercised the generated description against a recent regeneration commit.