This directory contains automation scripts and tools for the IT-Journey project.
The Link Health Guardian is a unified, comprehensive link checking system for the IT-Journey website. It provides automated link validation, intelligent analysis, and GitHub integration with minimal workflow complexity.
scripts/
└── link-checker.py # Single unified script with all functionality
.github/workflows/
└── link-checker.yml # Minimal workflow that calls the Python script
# Basic website check
python3 scripts/link-checker.py --scope website
# Comprehensive analysis with AI
python3 scripts/link-checker.py --scope website --analysis-level comprehensive
# Create GitHub issue with results
python3 scripts/link-checker.py --scope website --create-issue --repository bamr87/it-journey
# Check specific content types
python3 scripts/link-checker.py --scope posts
python3 scripts/link-checker.py --scope quests
python3 scripts/link-checker.py --scope docs
The workflow can be triggered:
| Parameter | Description | Options |
|---|---|---|
scope |
Content to check | website, internal, external, docs, posts, quests, all |
analysis-level |
Analysis depth | basic, standard, comprehensive, ai-only |
timeout |
Request timeout | 10, 20, 30, 45, 60 seconds |
create-issue |
Create GitHub issue | true, false |
ai-analysis |
Enable AI analysis | true, false |
When enabled, the AI analysis provides:
The script generates comprehensive output in the specified directory:
lychee_results.json - Raw link checker resultslink_analysis.json - Categorized failure analysisai_analysis.md - AI-generated insights (if enabled)github_issue.md - GitHub issue contentstatistics.env - Key metrics for workflow integrationissue_url.txt - Created issue URL (if applicable)The unified approach provides:
requests libraryOPENAI_API_KEY - For AI analysis (optional)GITHUB_TOKEN - For GitHub issue creation# Test with dry run (no actual changes)
python3 scripts/link-checker.py --scope website --dry-run
# Test specific analysis level
python3 scripts/link-checker.py --scope internal --analysis-level basic
# Test without AI (faster execution)
python3 scripts/link-checker.py --scope docs --no-ai
environment-setup.sh - Development environment configurationversion-manager.sh - Version management utilitiesupdate-settings.sh - Configuration updatesappend_feature.py - Feature addition automationjupyter-to-markdown.sh - Notebook conversionzer0-to-hero-complete.sh - Complete learning journey scriptzer0-to-hero-generated.sh - Auto-generated versionpip install requestspython3 scripts/link-checker.py --scope website --verboseOPENAI_API_KEY secret in GitHub repository settings (optional for AI analysis)The Link Health Guardian system exemplifies several key DevOps and automation concepts:
This system serves as both a practical tool and an educational example of modern DevOps practices in action.
When adding new scripts:
For the Link Health Guardian system specifically:
python3 scripts/link-checker.py --scope website --dry-run