Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a link checking tool #6

Open
Ethan-Arrowood opened this issue Sep 13, 2023 · 4 comments
Open

Add a link checking tool #6

Ethan-Arrowood opened this issue Sep 13, 2023 · 4 comments

Comments

@Ethan-Arrowood
Copy link
Collaborator

I've seen these before but never set one up myself. I'd like us to have some sort of link-checking cron job. It should check all links in our markdown documents and alert us when one 404s. The job should open an issue automatically reporting the 404'ing URL.

I don't think it should be apart of the lint step. Someone else work should not be blocked because another URL stopped working.

@escodel
Copy link

escodel commented Mar 1, 2024

@Ethan-Arrowood playing around with an idea for this where basically a GitHub Action scans the repo for *.md files for links on a daily basis (cron job can be set for whatever is preferred) then curls for status. If status is 404 it then hits the GitHub api to submit an Issue.

Need to tie the link to the filename, and probably the Bearer auth token etc to submit the issue through the GitHub REST API with that data included. Does that sound like what you might be looking for?

@Ethan-Arrowood
Copy link
Collaborator Author

Yes pretty much - I think there are existing tools that do this already so I'd prefer to use one of those before rolling it ourselves.

@ljharb
Copy link
Member

ljharb commented Mar 1, 2024

There's one on the CPC repo i think you can just summarily cargocult.

@escodel
Copy link

escodel commented Mar 1, 2024

Ah, yeah I see it's using linkinator in the GH Action workflow there. Well, it was a fun way to spend part of my evening! 😂

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

No branches or pull requests

3 participants