Repository navigation
Pull request summary comment: what changes and whether it can be merged - #245
Merged
Merged
Conversation
One comment per pull request, updated whenever Pull request check, Tests or CodeQL finishes: verdict (required checks, conflicts, draft), changed files by area, other failed checks and a fix hint per failed check. Runs on workflow_run from main and only reads the GitHub API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: ChristianHandy <christianhandy180@gmail.com>
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Owner
Author
|
/allow-ai 41e2891 PR summary bot, reviewed |
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.
Summary
Adds a bot comment to every pull request, like Home Assistant's review comments, but without AI: it says whether the pull request can be merged and what it changes. It is created once and updated whenever Pull request check, Tests or CodeQL finishes.
The comment shows:
/allow-ai <sha>line for AI assistance)Separately, I turned on automatic Copilot code review with a repository ruleset ("Copilot code review", main, on every push, not on drafts). That's a setting, not part of this diff.
Changes
scripts/pr_summary.py: builds and posts or updates the comment (GitHub API only, never the PR's code).github/workflows/pr-summary.yml:workflow_runtrigger, runs from main withpull-requests: write, checks out main only; the head SHA goes through an env variabletests/test_pr_summary.py: 8 tests (areas, re-runs, verdicts, rendering, create vs. update of the comment, outdated commits)CONTRIBUTING.md,CHANGELOG.mdworkflow_runworkflows only run from the default branch, so the comment won't appear on this pull request; it starts on the next ones after merging.Verification
pytest tests/test_pr_summary.py tests/test_license_headers.py: 8 passed;pr_summary.py88 % coveredruff check: passedzizmor --persona pedantic: no findings (1 documented ignore:dangerous-triggers)AI assistance
Prepared with Claude Code.
🤖 Generated with Claude Code