Skip to content

[fix] add links checking in CI#458

Merged
gregnazario merged 2 commits into
mainfrom
fix-broken-links
May 20, 2026
Merged

[fix] add links checking in CI#458
gregnazario merged 2 commits into
mainfrom
fix-broken-links

Conversation

@gregnazario
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 19, 2026 20:47
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

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

Project Deployment Actions Updated (UTC)
aptos-docs Ready Ready Preview, Comment May 20, 2026 2:45pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds CI-visible reporting for broken internal links detected by starlight-links-validator during astro build, while keeping link failures as warn-only (non-blocking) output.

Changes:

  • Introduces a Node script to parse astro build logs and emit a human-readable broken-link report (also appended to the GitHub Actions job summary).
  • Adds pnpm check:links and wires it into the pre-push hook for local visibility.
  • Updates the CI workflow to capture build logs and run the report step even when earlier steps fail.

Reviewed changes

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

File Description
scripts/report-broken-links.mjs New log-scraper that extracts starlight-links-validator output and prints a summarized report (stderr + GHA step summary).
package.json Adds check:links script and runs it from prepush.
.gitignore Ignores generated build log artifacts used for link reporting.
.github/workflows/test.yml Captures build output to build.log and runs the broken-link reporter with if: always().

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

Comment thread scripts/report-broken-links.mjs Outdated
Comment thread scripts/report-broken-links.mjs Outdated
Comment thread package.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Greg Nazario <greg@gnazar.io>
@gregnazario gregnazario merged commit baa858c into main May 20, 2026
7 checks passed
@gregnazario gregnazario deleted the fix-broken-links branch May 20, 2026 16:58
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