Skip to content

Add a scheduled link and pointer health check - #2934

Closed
kaankacar wants to merge 1 commit into
mainfrom
2883-link-and-pointer-health-check
Closed

kaankacar wants to merge 1 commit into
mainfrom
2883-link-and-pointer-health-check

Conversation

@kaankacar

Copy link
Copy Markdown
Contributor

Closes #2883

What

  • .github/workflows/link-health.yml: a weekly run (Mondays 06:23 UTC) and a manual run. It checks:

    • external links in docs/ with lychee (.github/link-health/lychee.toml),
    • Discord invites and GitHub repositories (scripts/link-health/pointers.mjs),
    • redirects (scripts/link-health/redirects.mjs).

    It never fails the build. It keeps one rolling issue with the link-health label. It creates or updates the issue when it finds problems, and closes it when all checks pass. A PR that changes these files gets a dry run with no issue writes.

  • .github/link-health/pointers.json: the pointers that the docs depend on. It lists Discord invites with the server that each one must open (stellardev opens Stellar Developers), the retired discord.gg/stellar (Stale Discord invite: discord.gg/stellar now resolves to an unrelated server #2797), and canonical repositories.

  • .github/workflows/check-routes-removal.yml: fails a PR that removes a route without a redirect, or that adds a redirect to a page that does not exist. It now also runs when nginx/includes/redirects.conf changes.

  • CONTRIBUTING.md: short notes on both checks.

Verification

Notes

  • This PR fixes none of the findings. The first scheduled run lists them in the issue.
  • The Discord API is not reachable from my network, so the Discord check did not run locally. Unit tests cover it with faked API answers. The expected server ID comes from the evidence in Stale Discord invite: discord.gg/stellar now resolves to an unrelated server #2797.
  • Two choices to review: the weekly cadence, and the PR-time redirect gate, which blocks the merge. Each is a one-line change.

Add a weekly workflow that checks external links in docs/, Discord
invites, GitHub repositories, and redirects. It keeps one rolling issue
up to date and never fails the build. A manifest lists the Discord
invites and canonical repositories that the docs depend on. The Check
Routes Removal workflow now fails a PR that removes a route without a
redirect.

Closes #2883
@kaankacar

Copy link
Copy Markdown
Contributor Author

/triage

@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@stellar-doxie stellar-doxie Bot added the bot:blocked-security Security-surface change; a human must review and merge label Oct 21, 2026
@stellar-doxie

stellar-doxie Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Reviewing because @kaankacar asked with /triage.

This PR adds and changes CI workflows, so a maintainer must review and merge it. The scripts, checks and Discord guild ID verify clean. Open choices: the weekly cadence, and whether the redirect gate blocks merges. @kaankacar @ElliotFriend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:blocked-security Security-surface change; a human must review and merge preview Preview builds for PRs by SDF employees.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an automated link and pointer health check for the docs (dead invites, moved repos, lost redirects)

1 participant