Enhanced link-checking workflow to mimic common browser behavior for greater reliability.
📊 Key Changes
Updated GitHub Actions for link checking to include a specific 'User-Agent' header:
--header "User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.6478.183 Safari/537.36"
🎯 Purpose & Impact
Improved Accuracy: Mimicking browser behavior can reduce false negatives by ensuring links that are valid in a browser are less likely to be falsely flagged as broken.
Enhanced Reliability: This change enhances the consistency and reliability of the automated link-checking process, providing more accurate results for developers and users reviewing documentation.
🧙 Sourcery has finished reviewing your pull request!
Tips
- Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request.
- Continue your discussion with Sourcery by replying directly to review comments.
- You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai):
- Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
- Change the review language;
- You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Enhanced link-checking workflow to mimic common browser behavior for greater reliability.
📊 Key Changes
🎯 Purpose & Impact