This is the PowerShell scripting challenge from my appearance on the PowerShell Podcast
Using whatever tools and techniques you want, write a PowerShell function that will query the Issues section of a GitHub repository and create output showing the number of open issues by label and the percentage of all open issues. Remember that multiple labels may be used with an issue.
For example, if there are 54 open issues and the bug label is used 23 times,your output would show a count of 23 and a total percentage of 42.59 for the bug label.
The function should work for any GitHub repository, but test it with the PowerShell repository. Naturally, the function should follow community accepted best practices, have parameter validation, and proper error handling.
Once you have the function, add custom formatting to display the results in a table, including the repository name or path.
Create an alternative view that will also display the repository and the label URI that GitHub uses to create a filtered page view.
Finally, create a control script using the function to create a markdown report for the PowerShell repository showing the top 25 labels. The markdown report should have clickable links.
You will most likely end up with several files to meet all the challenge requirements.
Hint: There's more than one way to access the GitHub API.
We hope many people will test their skills with this challenge. You are encouraged to post a comment with a link to your solution. Please do not post your solution. In about 4-6 weeks, I will post my solutions. There is no single correct solution to this challenge and the goal is to have fun and learn something new along the way.
Happy Scripting!
Fun idea for a challenge! Unfortunately/fortunately, I had no computer for my entire holiday vacation and this month is looking busy. Look forward to trying as well as to seeing the solutions people come up with.