Metrics

10 commands (GET 10). Write commands (POST, PUT, PATCH, DELETE) change data on GitHub, use -WhatIf to preview a request

Command Alias Method Endpoint Synopsis
Get-GitHubRepositoryClones Get-GHRepositoryClones GET /repos/{owner}/{repo}/traffic/clones Get repository clones
Get-GitHubRepositoryCodeFrequencyStats Get-GHRepositoryCodeFrequencyStats GET /repos/{owner}/{repo}/stats/code_frequency Get the weekly commit activity
Get-GitHubRepositoryCommitActivityStats Get-GHRepositoryCommitActivityStats GET /repos/{owner}/{repo}/stats/commit_activity Get the last year of commit activity
Get-GitHubRepositoryCommunityProfileMetrics Get-GHRepositoryCommunityProfileMetrics GET /repos/{owner}/{repo}/community/profile Get community profile metrics
Get-GitHubRepositoryContributorsStats Get-GHRepositoryContributorsStats GET /repos/{owner}/{repo}/stats/contributors Get all contributor commit activity
Get-GitHubRepositoryParticipationStats Get-GHRepositoryParticipationStats GET /repos/{owner}/{repo}/stats/participation Get the weekly commit count
Get-GitHubRepositoryPunchCardStats Get-GHRepositoryPunchCardStats GET /repos/{owner}/{repo}/stats/punch_card Get the hourly commit count for each day
Get-GitHubRepositoryTopPaths Get-GHRepositoryTopPaths GET /repos/{owner}/{repo}/traffic/popular/paths Get top referral paths
Get-GitHubRepositoryTopReferrers Get-GHRepositoryTopReferrers GET /repos/{owner}/{repo}/traffic/popular/referrers Get top referral sources
Get-GitHubRepositoryViews Get-GHRepositoryViews GET /repos/{owner}/{repo}/traffic/views Get page views

Have a look around and if you would like to contribute please read over the Contributing guide


Table of contents