Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Usage Examples

Real-world configuration examples and usage scenarios for GitFlow Analytics.

🎯 Example Categories

Complete workflows using the interactive launcher:

  • First-time setup and configuration
  • Repository selection and preferences
  • Identity detection and management
  • Troubleshooting common issues

JIRA integration and story points tracking:

  • Complete JIRA setup with authentication
  • Story point extraction patterns
  • Text-based and API-based tracking
  • Configuration validation and testing

Additional Examples (Coming Soon)

More examples are being developed to cover:

Basic Analysis

  • Single repository analysis workflows
  • Individual developer productivity insights
  • Quick health checks and team metrics

Enterprise Setup

  • Multi-repository organization discovery
  • Advanced identity resolution strategies
  • Performance optimization for large organizations

CI Integration

  • GitHub Actions automated analysis
  • GitLab CI pipeline integration
  • Jenkins job configuration
  • Automated report generation

Custom Workflows

  • Custom commit categorization rules
  • Specialized report formats
  • Integration with external tools
  • Advanced filtering and analysis focus

🚀 Quick Start Examples

Minimal Configuration

# quickstart-config.yaml
github:
  token: "${GITHUB_TOKEN}"
  repositories:
    - owner: "myorg"
      name: "myrepo"
      local_path: "./myrepo"

Organization Discovery

# org-config.yaml
github:
  token: "${GITHUB_TOKEN}"
  organization: "myorg"  # Discovers all repositories
  
analysis:
  weeks: 8

ML-Enhanced Analysis

# ml-config.yaml
github:
  token: "${GITHUB_TOKEN}"
  organization: "myorg"

analysis:
  weeks: 12
  enable_ml_categorization: true
  
ml_categorization:
  model_name: "en_core_web_sm"
  confidence_threshold: 0.7

📁 Configuration File Templates

All examples include complete, working configuration files located in /examples/config/:

  • config-sample.yaml - Basic single-repository setup
  • config-organization.yaml - Organization-wide analysis
  • config-ml-enhanced.yaml - ML categorization enabled
  • config-enterprise.yaml - Large-scale deployment
  • config-minimal.yaml - Simplest possible configuration

🎯 Choose Your Example

By Team Size

Individual Developer (1 person)Interactive Launcher Examples - Perfect for personal productivity insights

Small Team (2-10 people)Interactive Launcher Examples with multiple repositories

Medium Team (10-50 people)Story Points Configuration with organization discovery

Large Organization (50+ people)Story Points Configuration with performance optimization

By Use Case

First-time setupInteractive Launcher Examples - Start simple and expand

Regular team health checksInteractive Launcher Examples - Automated recurring analysis

Quarterly planning and reviewsStory Points Configuration - Comprehensive insights

Custom reporting needsStory Points Configuration - Specialized configurations

By Technical Needs

Simple CSV reportsInteractive Launcher Examples - Standard output formats

JSON data exportStory Points Configuration - API integration patterns

ML commit categorizationStory Points Configuration - Advanced analysis features

Automated workflowsInteractive Launcher Examples - Pipeline integration

💡 Example Usage Patterns

Development Workflow

  1. Start with Basic: Use basic analysis to understand your repository
  2. Add Features: Gradually enable ML categorization and advanced options
  3. Scale Up: Move to organization-wide analysis as needed
  4. Automate: Integrate with CI/CD for regular insights

Analysis Cadence

# Weekly sprint reviews
analysis:
  weeks: 2
  
# Monthly team health  
analysis:
  weeks: 4
  
# Quarterly planning
analysis:
  weeks: 12
  
# Annual reviews
analysis:
  weeks: 52

🔧 Customization Examples

Focus on Specific Areas

analysis:
  # Only analyze Python and JavaScript
  include_file_patterns:
    - "*.py"
    - "*.js" 
    - "*.ts"
    
  # Exclude generated files
  exclude_file_patterns:
    - "*.min.js"
    - "package-lock.json"
    - "__pycache__/*"

Custom Report Formats

reports:
  formats: ["csv", "json", "markdown"]
  output_directory: "./reports"
  
  # Custom naming
  filename_template: "team_analysis_{date}"
  
  # Include additional data
  include_untracked_analysis: true
  include_detailed_metrics: true

📊 Expected Outputs

Each example shows expected report structure and key insights you'll receive:

  • CSV Reports: Structured data for analysis and integration
  • Markdown Reports: Human-readable insights and recommendations
  • JSON Exports: Complete data for custom tooling and dashboards

🆘 Common Adaptations

Adapting Examples for Your Environment

  1. Repository URLs: Replace example repositories with your own
  2. Authentication: Set up your GitHub token and credentials
  3. Time Periods: Adjust weeks parameter for your analysis needs
  4. Output Locations: Customize paths for your directory structure
  5. Team Structure: Modify identity mappings for your developers

Testing New Configurations

# Validate configuration without running analysis
gitflow-analytics -c your-config.yaml --validate-only

# Test with shorter time period first
gitflow-analytics -c your-config.yaml --weeks 2

# Clear cache if making major changes
gitflow-analytics -c your-config.yaml --clear-cache

🔄 Related Documentation

📝 Contributing Examples

Have a useful configuration or workflow? Consider contributing it:

  1. Create a new example following existing patterns
  2. Include complete working configuration
  3. Document expected outputs and key insights
  4. Test with real data before submitting
  5. See Contributing Guide for details

Start with an example that matches your situation and customize from there!