Repository navigation
Adapt opt-in PR comment summaries to paginated reporting - #1100
Merged
decyjphr merged 3 commits intoSep 30, 2026
Merged
Conversation
Adapt PR #1075 feature commit f9b4408 onto 337604d, preserving default output and subject-aware repository counts. The source table-closing commit 0b8dcce is obsolete with the existing details renderer. Add bounded page footers, focused regressions, and isolated reporting smoke phase 27 with real-Octokit transport coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Truncation can leave the checkbox inside collapsed markup, and the check-run link promises details that large check runs omit.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
This PR adds an opt-in, at-a-glance summary to paginated PR comments while preserving the default reporting output.
Changes:
- Adds an environment flag for operation-wide error and plugin summaries, a check-run link, and a review checkbox.
- Reserves footer space within the comment size limit and adds unit, transport, and smoke coverage.
| File | Description |
|---|---|
| test/unit/lib/settings-results.test.js | Tests summary content, pagination, and size limits. |
| test/unit/lib/env.test.js | Tests the new flag’s values. |
| test/integration/transport/pr-comment-summary.test.js | Tests smoke-phase transport and cleanup. |
| smoke-test.js | Adds an owned-fixture reporting phase. |
| README.md | Documents the flag and smoke phase. |
| lib/settings.js | Adds summary metadata and footer handling. |
| lib/env.js | Defaults the summary flag to false. |
| .env.example | Documents the environment setting. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Preserve both opt-in summary and incoming comment-markup regression suites when resolving their shared test-file conflict. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reserve closing markup within the comment limit, avoid splitting details/summary tags, and preserve flag-off output. Cover oversized plugin/error/warning/info sections and footer placement in boundary and transport regressions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

Large configuration changes need an at-a-glance summary without changing existing deployments' output. This selectively adapts #1075 onto
yadhav/fix-recent-issues, retaining its current subject-aware counts and paginated details rather than restoring the source PR's legacy HTML table.Approach
PR_COMMENT_SUMMARY_ENABLED, defaulting tofalse. When enabled, each page includes the operation-wide error-entry count, affected-plugin list, valid check-run link when available, and an unchecked descriptive review checkbox.CREATE_PR_COMMENT=falsestill suppresses comments.Source audit
Based directly on target commit
337604d30c447554b8e21d88d5a4eb4bb219d052, with no source-branch merge or unrelated ancestry imported.f9b4408110599130ca8ebabf90779c76f40c2d9b251e119850440a69196c7a4b2b5b0c76b3d7a0e6; existing default counts and pagination remain intact.0b8dccec030dc88db0a8a187e106d6fc7697e185These are the complete source-only commits. Source tests expecting absent default counts or a single truncated comment were replaced with tests for the current contract. Error counts represent deduplicated error entries, not just repositories with errors; the checkbox is not enforced or automatically checked.
Validation
The live harness exited successfully. A separate wrapper failed a process-name heuristic; retained PID ancestry, inherited guard logs, post-dotenv assertions, process termination and the freed port were independently verified without a rerun. Live coverage verifies generated/stored markup with controlled dry-run inputs, not browser rendering, webhook reconciliation, or compatibility with other independently integrated branches.