Version: 2.2.0
Last Updated: 2024-12-22
Maintainer: Monitora Vagas Development Team
This directory contains GitHub-specific configuration files for:
- ✅ Automated workflows (CI/CD)
- ✅ Dependency management
- ✅ Issue templates (if configured)
- ✅ Pull request templates (if configured)
Purpose: Validates documentation structure and quality on every push/PR
Triggers:
- Push to
docs/**or*.mdfiles - Pull requests affecting
docs/**or*.mdfiles
What it checks:
- ✅ Markdown Linting - Uses remark with recommended presets
- ✅ Internal Link Validation - Ensures all relative links work
- ✅ Directory Structure - Verifies required folders exist
- ✅ Documentation Health Report - Generates statistics and structure report
Required Directories:
docs/
├── api/ # API documentation
├── architecture/ # System design docs
├── features/ # Feature specifications
├── guides/ # User/developer guides
├── implementation/ # Implementation details
├── specifications/ # Technical specifications
├── standards/ # Coding standards
├── testing/ # Test documentation
└── workflows/ # Workflow documentation
Jobs:
- lint-and-organize (ubuntu-latest)
- Checkout repository
- Setup Node.js 20
- Install remark tools
- Lint documentation
- Validate internal links (continues on error)
- Check directory structure
- Generate documentation report
- Upload report as artifact
Artifacts:
documentation-report- Containsdocs-report.mdwith:- Directory structure (tree view)
- Statistics (file count, directory count)
- Timestamp
Exit Codes:
0- All checks passed1- Linting errors or missing directories
Fixing Failures:
Linting Errors:
# Install remark locally
npm install -g remark-cli remark-lint remark-preset-lint-recommended
# Lint documentation
remark docs/ --use remark-preset-lint-recommended
# Auto-fix common issues
remark docs/ --use remark-preset-lint-recommended --outputLink Validation Errors:
# Install link validator
npm install -g remark-validate-links
# Check links
remark docs/ --use remark-validate-links
# Common fixes:
# - Update relative paths: [Link](../correct/path.md)
# - Fix anchor links: [Section](#correct-section-name)
# - Remove or update dead linksDirectory Structure Errors:
# Create missing directories
mkdir -p docs/api docs/architecture docs/features docs/guides \
docs/implementation docs/specifications docs/standards \
docs/testing docs/workflowsRelated Documentation:
Purpose: Automated dependency updates for npm packages
Configuration:
- Ecosystem: npm
- Directory:
/(root) - Schedule: Weekly (Mondays at 9:00 AM)
- Open PR Limit: 10 (5 regular + security updates)
Update Groups:
-
Production Dependencies
bootstrap- UI frameworkibira.js- API client library- Update types: minor, patch
-
Test Dependencies
jest*- Testing framework@jest/*- Jest pluginsselenium-webdriver- Browser automation- Update types: minor, patch
-
Dev Dependencies
eslint*- Code lintingmarkdownlint*- Markdown lintingnode-fetch- HTTP client- Update types: minor, patch
Versioning Strategy:
- increase - Always increment version
Ignored Updates:
- ❌ Major versions - Require manual testing due to breaking changes
- 🔒 Security updates - Always allowed regardless of version
PR Labels:
dependencies- All dependency updatesautomated- Automated PRs
Commit Message Format:
chore(deps): update <group-name>
- Updates <package1> from x.y.z to x.y.z+1
- Updates <package2> from x.y.z to x.y.z+1
Handling Dependabot PRs:
-
Review Changes:
# Checkout PR branch gh pr checkout <PR-number> # Review changes git log --oneline npm list | grep <updated-package>
-
Test Updates:
# Install dependencies npm install # Run tests npm run test:all # Run linting npm run lint # Check for breaking changes npm outdated
-
Merge or Close:
- ✅ Merge if tests pass and no breaking changes
- ⏸️ Postpone major updates for dedicated update cycles
- ❌ Close if update causes issues
Manual Updates (Major Versions):
# Check for major updates
npm outdated
# Update specific package (major version)
npm install <package>@latest
# Test thoroughly
npm run test:all
npm run test:production
# Update package.json version constraints if needed
# Review CHANGELOG of updated package
# Document breaking changes in CHANGELOG.mdRelated Documentation:
Dependabot Security Alerts:
- Automatically enabled for this repository
- Creates PRs for vulnerable dependencies
- Higher priority than regular updates
- Open PR limit: 10 (allows for security PRs even when at regular limit)
Security Best Practices:
- ✅ Review Dependabot security alerts promptly
- ✅ Test security updates before merging
- ✅ Keep dependencies up-to-date (reduces attack surface)
- ✅ Monitor GitHub Security Advisories tab
- ✅ Use
npm auditlocally before committing
Potential Additions:
- CI/CD workflow for running tests on PR
- Automated deployment workflow
- Issue templates for bugs/features
- Pull request template with checklist
- Code scanning with CodeQL
- Performance benchmarking workflow
- Semantic release automation
- Changelog generation workflow
- Main README - Project overview
- CI/CD Section - CI/CD usage guide
- Scripts Index - All project scripts
- Contributing Guide - How to contribute
- Documentation Standards - Doc standards
Last Updated: 2024-12-22
Maintained By: Monitora Vagas Development Team
Questions? Open an issue or check related documentation above.