Skip to content

test: PR checks on a broken PR, then remediated (do not merge) - #1921

Draft
marcleblanc2 wants to merge 13 commits into
mainfrom
test-pr-checks-remediated-2
Draft

test: PR checks on a broken PR, then remediated (do not merge)#1921
marcleblanc2 wants to merge 13 commits into
mainfrom
test-pr-checks-remediated-2

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Same commit as #1920, which stays broken for comparison. Here, a second commit applies exactly the fixes the checks suggested (check-links, check-redirects, and spell check review suggestions, including CSpell's wrong guess arcos), and a third fixes what the checks could only report: the dead external link, missing page/heading links, the inbound anchor link, the deleted page and the page shadowed by a redirect, across, and the unsorted allow-list entry.

Built on main plus the check PRs not merged yet: #1880, #1916, #1919.

Replaces #1914. Do not merge.

marcleblanc2 and others added 8 commits September 11, 2026 09:08
dev/check-redirects.mjs checks every entry in src/data/redirects.ts:
source shadows a page, source has a #fragment, duplicate source,
/docs prefix, chained redirect, missing destination page or heading.
The workflow compares against the merge base, so only redirects a PR
breaks are reported, grouped by problem with the fix explained under
each heading, and posts one suggested change per fixable entry the PR
added (deleted again once the finding is gone).

Not part of `npm run check`: main has hundreds of pre-existing
findings.

Squash of the check-redirects branch rebased onto main; the check-links
commits it carried are already on main.

Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9
Co-authored-by: Amp <amp@ampcode.com>
… fact per line

- Review comments: one suggested change per finding with a fix, no review
  body. Each starts with a marker so the workflow can delete suggestions
  for findings that are fixed and skip ones already posted.
- Summary comment and review comments list line, link, problem, and fix
  on their own lines.
- Absolute links to this site get their own section instead of Outbound.
- Case-mismatch findings now carry a fix.
- Wording: 'links on this site', 'these other pages', drop
  docs.sourcegraph.com; reproduce command matches package.json.

Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9
Co-authored-by: Amp <amp@ampcode.com>
… update comments whose text changed

Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Sep 11, 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 11, 2026 3:14pm UTC

Request Review

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Direct preview links to pages changed in this PR:

marcleblanc2 and others added 5 commits September 11, 2026 09:12
… (do not merge)

Check links: three absolute self-links (one to a moved page) and a dead
external link on one line; a missing page, missing heading, and wrong-case
path on the next; and the "Symbol search" heading renamed to break the
inbound anchor link from search-based-code-navigation.mdx.

Spell check: nine misspellings on one line, five of them block-list words.

Check redirects: one broken entry per category (shadowed page, #fragment
source, /docs prefix, duplicate source, chain, missing page, missing heading).

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9
Restore the deleted page, the shadowed redirect page, and both renamed
headings; point the dead links at real targets; fix the one misspelling
CSpell guessed wrong (across, not arcos); drop the unsorted allow-list entry.

Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9
Co-authored-by: Amp <amp@ampcode.com>
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