DEV Community

Nabil Alamin
Nabil Alamin

Posted on β€’ Edited on

2 2

View Github Issues as stats in a compact way

My Workflow

Issue Stats analyses a repo's issues and then generates a table for quick and easy info. The stat points are:

  • average issue response time ⏱
  • total issues πŸ”’
  • open issues πŸ“¬
  • closed issues πŸ“­
  • replied issues β˜‘
  • not replied issues βž–

 

Submission Category:

Maintainer Must-Haves / Wacky Wildcards

 

Link to Code and YAML File

GitHub logo arndom / issue-stats-card

Analyse a github repo's issues then generates a table of stats for quick info.

Live Preview

Issue Statistics Values
Closed Issues πŸ“ͺ 1
Open Issues πŸ“« 0
Total Issues πŸ”’ 1
Replied Issues β˜‘ 0
Not Replied Issues βž– 1
Avg. Issue Response Time ⏱ NA

How to use

  1. Star this repo pοΏ½οΏ½

  2. Go to your special repository(repo with name the same as git username).

  3. Add the following section to your README.md file, you can give whatever title you want. Just make sure that you use <!-- <-ISSUE-STAT-HERE-> --><!-- <-ISSUE-END-HERE-> --> in your readme. The workflow will replace this comment with the actual blog post list:

    # ISSUE STATS
    <!-- <-ISSUE-STAT-HERE-> -->
    <!-- <-ISSUE-END-HERE-> -->
    Enter fullscreen mode Exit fullscreen mode
  4. Create a folder named .github and create a workflows folder inside it, if it doesn't exist.

  5. Create a new file named issue-stat-workflow.yml with the following contents inside the workflow folder:

name: Issue Stats Card
on:
  issues:
    types: [opened, edited, closed]
  issue_comment:
    types: [created,
…
Enter fullscreen mode Exit fullscreen mode

name: Issue Stats Card

on:
  issues:
    types: [opened, edited, closed]
  issue_comment:
    types: [created, deleted]
  workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly

jobs:
  get_repo_issue_stats:
    runs-on: ubuntu-latest
    name: Get repo issue stats
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Get issue stats then generate card 
      uses: arndom/issue-stats-card@v1

Enter fullscreen mode Exit fullscreen mode

 

Additional Resources / Info

Late submission incoming... been a wonderful hackathon, so glad I found the time to learn something new and make this.
Special thanks to @omzlaw for the help in my thought process and debugging.

Hope you like it πŸ€—, Don't forget to leave a star ⭐

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

πŸ‘‹ Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay