Giter Club home page Giter Club logo

challenge.jeffhickspowershellpodcastchallenge2024's Introduction

PowerShell Podcast 2024 Challenge Implementation

This repo is my implementation of Jeff Hicks' PowerShell Podcast 2024 challenge.

๐Ÿš€ Running the code

Either clone this repo to your local machine, or simply open it in GitHub Codespaces.

Open the Invoke-GetGitHubIssuesLabelStats.ps1 script and run it. This will generate a markdown file in the src directory with the label statistics for the PowerShell repository. You can then preview the markdown file in VS Code. If not using GitHub Codespaces, it will also open the markdown file in your default web browser. The results are also written to the console, and could be piped to other cmdlets if desired.

Feel free to change the parameters to test it with different repositories.

? The challenge

Below is a copy of the challenge from Jeff's Gist, in case it disappears in the future.

Base Challenge

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.

Bonus Challenges

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.

challenge.jeffhickspowershellpodcastchallenge2024's People

Contributors

deadlydog avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

pa-0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.