Skip to content

Instantly share code, notes, and snippets.

View pauljnav's full-sized avatar

Paul Naughton pauljnav

  • galway, ireland
View GitHub Profile
@pauljnav
pauljnav / Get-GitHubOpenIssueCount.ps1
Last active April 7, 2024 13:23
Queries the issues section of a GitHub repository using GitHub REST API and tabulates output showing the number of open issues by label with percentage detail. Pull Requests are issues, but issues are not Pull Requests, this function provides filtering for Pull Requests. The command collects a maximum 1000 issues, max 10 Pages having 100 issues …
#requires -version 5.1
<#
.Synopsis
Queries the issues section of a GitHub repository and tabulates open issue statistics.
.DESCRIPTION
Queries the issues section of a GitHub repository using GitHub REST API and tabulates output showing the number of open issues by label with percentage detail.
Pull Requests are issues, but issues wre not Pull Requests, this function provides filtering for Pull Requests.
The customer collects a maximum 1000 issues, max 10 Pages having 100 issues to comply with GitHub rate limits.
.EXAMPLE