github-org-analyzer

August 27, 2023 ยท View on GitHub

This Fortran package provides procedures to analyze GitHub organizations and retrieve valuable information about their repositories. By leveraging the power of the http-client package, this analyzer fetches data from the GitHub API to generate insightful reports.

Features

The github-org-analyzer package offers the following procedures:

  • analyze_github_organization: Provides detailed information about all repositories within the organization.
  • get_top_active_repositories: Retrieves information about the top active repositories within the organization.
  • get_top_starred_repositories: Retrieves information about the top starred repositories within the organization.
  • get_most_used_repositories: Retrieves information about the most used repositories within the organization.
  • get_contributor_from_repositories: Retrieves information about the contributors of the organization's repositories.

Prerequisites

To use the github-org-analyzer package, ensure you have the following dependencies installed:

  • Fortran compiler
  • On Ubuntu, you need to install the curl development headers. Use the following command:
sudo apt install -y libcurl4-openssl-dev

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/github-org-analyzer.git
    
  2. Compile the package using your fpm:

    cd github-org-analyzer
    fpm build
    fpm run
    

Usage

To use the procedures provided by github-org-analyzer, follow these steps:

  1. Import the package into your Fortran project:

    use github_org_analyzer
    
  2. Call the desired procedures to retrieve information about GitHub organizations and their repositories.

    ! Analyze GitHub organization
    call analyze_github_organization("your-github-org")
    
    ! Get information about top active repositories
    call get_top_active_repositories("your-github-org")
    
    ! Get information about top starred repositories
    call get_top_starred_repositories("your-github-org")
    
    ! Get information about most used repositories
    call get_most_used_repositories("your-github-org")
    
    ! Get information about contributors from repositories
    call get_contributor_from_repositories("your-github-org", "org-repository")
    

Happy analyzing!