|
| 1 | +program main |
| 2 | + ! This Fortran project, named "GitHub Organization Analyzer," demonstrates the usage of the |
| 3 | + ! http-client module to make HTTP requests and interact with the GitHub API. The project |
| 4 | + ! provides a set of subroutines that allow users to fetch and display information about GitHub |
| 5 | + ! repositories and contributors within a specified GitHub organization. |
| 6 | + |
| 7 | + use github_org_analyzer, only: analyze_github_organization, get_top_active_repositories, & |
| 8 | + get_top_starred_repositories, get_most_used_repositories, get_contributor_from_repositories |
| 9 | + |
| 10 | + implicit none |
| 11 | + |
| 12 | + ! Fetching and displaying information about all repositories within the GitHub organization |
| 13 | + ! 'fortran-lang' using the analyze_github_organization subroutine. |
| 14 | + print *, '::::::: All Repositories :::::::'//new_line('a') |
| 15 | + call analyze_github_organization(org_name='fortran-lang') |
| 16 | + |
| 17 | + ! Fetching and displaying detailed information about the top active repositories within the |
| 18 | + ! organization using the get_top_active_repositories subroutine. |
| 19 | + print *, '::::::: Top Active Repositories :::::::'//new_line('a') |
| 20 | + call get_top_active_repositories(org_name='fortran-lang') |
| 21 | + |
| 22 | + ! Fetching and displaying detailed information about the top starred repositories within the |
| 23 | + ! organization using the get_top_starred_repositories subroutine. |
| 24 | + print *, '::::::: Top Starred Repositories :::::::'//new_line('a') |
| 25 | + call get_top_starred_repositories(org_name='fortran-lang') |
| 26 | + |
| 27 | + ! Fetching and displaying detailed information about the most used repositories within the |
| 28 | + ! organization (based on the number of forks) using the get_most_used_repositories subroutine. |
| 29 | + print *, '::::::: Top Used Repositories :::::::'//new_line('a') |
| 30 | + call get_most_used_repositories(org_name='fortran-lang') |
| 31 | + |
| 32 | + ! Fetching and displaying detailed information about contributors from the repository 'stdlib' |
| 33 | + ! within the organization using the get_contributor_from_repositories subroutine. |
| 34 | + print *, '::::::: Contributors from a Repositories :::::::'//new_line('a') |
| 35 | + call get_contributor_from_repositories(org_name='fortran-lang', repo_name='stdlib') |
| 36 | + |
| 37 | +end program main |
0 commit comments