ci: add live URL audit (weekly cron) + grandfather current broken URLs#11
Merged
Conversation
Add .url_check_allowlist.txt at repo root containing the 9 broken URLs
the audit currently flags in HowToLens — mostly external paywalled / dead
links and a few internal docs renames that need editorial fixes. The
weekly cron job will only fail when a NEW broken URL appears that isn't
in this file.
Update .github/workflows/url_check.yml:
- keep the existing offline regex guard (runs on every PR + push, now
with ~15 additional bad patterns thanks to the matching PyAutoBuild
extension)
- add a url_check_live job that runs on schedule (Mon 04:00 UTC) and
workflow_dispatch. On non-zero exit it opens or comments on a
[url-check] New broken URLs detected tracking issue.
- on a clean run, auto-closes any prior open [url-check] issue.
Tool: PyAutoLabs/PyAutoBuild#87 (paired PR — must merge first for the
extended regex patterns and the new live tool to be available).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the live URL-audit CI infrastructure described in PyAutoLabs/PyAutoBuild#87 to HowToLens.
.url_check_allowlist.txtat repo root — 9 URLs the audit currently flags as broken in this repo. Mostly external paywalled / dead links and internal docs renames. Each is grouped by category with the originating file:line as an inline comment..github/workflows/url_check.yml— extended:hhttps://, staleJammy2211/refs, etc.schedule(Monday 04:00 UTC) andworkflow_dispatch. Validates every URL in the repo's docs against the allowlist. On new breakage, opens or appends to a tracking issue titled[url-check] New broken URLs detected. On a clean run, automatically closes any prior open tracking issue.No code changes. Doc / CI-only.
Test plan
url_check_live.sh HowToLensexits 0 against the current allowlist (post-merge cron run will be a no-op until something new breaks)Related