Skip to content

Add GitHub review filters and exports - #14

Merged
thinksyncs merged 1 commit into
mainfrom
codex/github-review-filter-export
Mar 18, 2026
Merged

thinksyncs merged 1 commit into
mainfrom
codex/github-review-filter-export

Conversation

@thinksyncs

Copy link
Copy Markdown
Contributor

Summary\n- add severity filtering and trust summary to the Explorer review\n- add JSON and Markdown export commands for .github review results\n- allow copying remediation snippets directly from the finding flow\n\n## Validation\n- npm test\n- npm run build\n- npm run package:extension -- --out /tmp/workspace-guard-filter-export.vsix

Copilot AI review requested due to automatic review settings March 18, 2026 15:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds severity-based filtering, trust labeling, and export/copy helpers to the Workspace Guard .github review experience in the VS Code extension.

Changes:

  • Introduces .github review trust levels/labels and a severity filter for reports.
  • Adds VS Code commands/UI actions to set the filter and export the review as JSON/Markdown.
  • Adds remediation snippet extraction and a “copy patch snippet” action.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/githubReviewPresentation.test.ts Adds tests for trust labeling, filtering, and Markdown export formatting.
tests/githubRemediation.test.ts Adds test coverage for retrieving remediation patch snippets.
src/vscodeExtension.ts Implements filter persistence, filtered tree rendering, export commands, and snippet copy action.
src/extension/githubReviewPresentation.ts Adds trust-level logic, report filtering, and Markdown export formatter.
src/extension/githubRemediation.ts Exposes a helper to return the remediation snippet when available.
README.md Documents filter/export capabilities in the review view.
package.json Contributes new commands and view actions + activation events.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/vscodeExtension.ts
Comment on lines +149 to +155
const filteredVisibleEntries = filteredEntries.filter(({ fullReport, filteredReport }) => {
if (this.filter === "all") {
return true;
}

return filteredReport.findings.length > 0 || fullReport.findings.length === 0;
});
Comment thread src/vscodeExtension.ts
Comment on lines +175 to +178
return [{
kind: "empty",
label: element.filter === "all" ? "No findings" : `No ${element.filter} findings`,
description: element.filter === "all"
Comment thread src/vscodeExtension.ts
const reports = githubReviewTreeProvider.getReports();
const filter = githubReviewTreeProvider.getFilter();
const filteredReports = reports.map((report) => filterGithubMetadataReport(report, filter));
const summary = summarizeGithubMetadataReports(filteredReports);
@thinksyncs
thinksyncs merged commit e9b8f3d into main Mar 18, 2026
10 checks passed
@thinksyncs
thinksyncs deleted the codex/github-review-filter-export branch March 18, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants