-
Notifications
You must be signed in to change notification settings - Fork 171
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 Broken Link Checker - Github Action #6596
Comments
Thanks a lot. Sounds like a good idea. |
This is what I got when I run the script for the entire repo: I then changed it to run the tests for 2024, 2025 and 2026 folders and got a more reasonable number: After running the workflow, this issue was created |
Oh that's really cool! |
I just want to make sure we're all aligned. Let me explain what I believe the workflow I've set up is designed to do (please correct me if I'm mistaken). This workflow is designed to automatically check for broken links in JSON files within specific folders of the repository ( |
That works for me. We can always tweak if we're unhappy with the results. 👍 |
Thank you @cgrail, it looks great! |
Yeah. However I have the feeling that we can quite some false negatives. |
Yeah, that's the only thing that is annoying at this point. |
I believe that it will be a great idea to setup a GitHub action that runs periodically and checks for broken links.
It will check all repository links once per day and create an issue in case of errors.
Github action to check for broken links in Markdown, HTML, and text files using Lychee, a fast link checker written in Rust.
Here is a full example of a GitHub workflow file:
It will check all repository links once per day and create an issue in case of errors.
I'd like to share my experience with Lychee. I came across it yesterday and integrated it into my project. While it was helpful in identifying some broken links, it also generated some false positives (links that appear broken but function correctly). I'm still exploring the tool's functionality to potentially fine-tune its accuracy.
On a separate note, I encountered a permissions issue when trying to open new issues.
Project implementations:
here is an example from my own project:
![image](https://private-user-images.githubusercontent.com/25883220/329076589-9a469ddc-ab35-4062-a475-67ca6a3f6bce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjQxMzcsIm5iZiI6MTczOTYyMzgzNywicGF0aCI6Ii8yNTg4MzIyMC8zMjkwNzY1ODktOWE0NjlkZGMtYWIzNS00MDYyLWE0NzUtNjdjYTZhM2Y2YmNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEyNTAzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM3OWUyZmI0NWUwOWJhNzUxNTEwOTlmNjEzNGNhZjVmZGExZjYyYTdkYmE5NTg2YjRkYWY3NjE2MjllNDg0Y2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gaMUL-b3jlC2hJ6BK1AonO87CVgLwqppvFA40c8Kiok)
I hope this helps
The text was updated successfully, but these errors were encountered: