Skip to content

PR checks: keep a findings/remediated table in the status comment - #2018

Open
marcleblanc2 wants to merge 2 commits into
mainfrom
marc/pr-check-status-table
Open

marcleblanc2 wants to merge 2 commits into
mainfrom
marc/pr-check-status-table

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

The spelling, links, and redirects checks post one status comment each. Until now that comment was replaced on every run (and the spelling one was minimized once resolved), so the only record of what a check found was the Actions job log.

Now each check updates its comment through dev/upsert-report-comment.sh, which keeps a table under the heading:

Total findings Remediated
12 8

Total findings counts every distinct finding any revision of the PR had; Remediated is how many of those the current revision no longer has. On a merged PR, the difference is what it was merged with. To tell a fixed finding from a new one, the checks write each finding's identity (--keys, without line numbers) and the comment keeps a hidden list of every identity seen. The spelling summary is no longer minimized.

dev/pr-check-metrics.sh [merged-since] sums the tables over merged PRs, per check.

As before, nothing is posted on a PR that never had findings, so clean PRs' authors get no email. Editing an existing comment sends no notification.

Spelling summaries that were minimized before this change stay minimized; I'll unminimize the ones on open PRs once this merges.

The spelling, links, and redirects checks now post and update their
summary comment through dev/upsert-report-comment.sh, which keeps a
Total findings / Remediated table below the heading. The spelling
summary is no longer minimized when resolved. dev/pr-check-metrics.sh
sums the tables over merged PRs to report how many findings were fixed
before merging and how many were merged in.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0c49e-51da-72ca-8a4a-6c0660c5e505
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 22, 2026 12:23am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

The status comment keeps a hidden list of every finding identity it has
seen (the checks write them with --keys, without line numbers), so Total
findings is the distinct findings any revision had and Remediated is how
many of those are gone, even when a revision fixes some and adds others.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0c49e-51da-72ca-8a4a-6c0660c5e505
Co-authored-by: Amp <amp@ampcode.com>

This branch was successfully deployed

1 active deployment
Preview 74a69b19 Deployed Sep 22, 2026 by vercel[bot]
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.

1 participant