How to: Create Dashboard to visualize Branches ahead/behind on GitHub

$uriRepositories = "$($UriOrganization)/repos"$RepositoriesResult = Invoke-RestMethod -Headers $headers -Uri $uriRepositoriesforeach ($repo in $RepositoriesResult)
{
Write-Host $repo.name
Write-Host $repo.default_branch
}
$urlBranchesRepo = $repo.branches_url.Replace('{/branch}','')    $BranchesRepoResult = Invoke-RestMethod -Headers $headers -Uri $urlBranchesRepo    foreach ($branchRepo in $BranchesRepoResult)
{
Write-Host $branchRepo.name
}
$uriCompare = "$($UriRepos)/$($repo.name)/compare/$($repo.default_branch)...$($branchRepo.name)"        $ComparesResult = Invoke-RestMethod -Headers $headers -Uri $uriCompareWrite-Host $ComparesResult.ahead_by 
Write-Host $ComparesResult.behind_by

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store