github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

Card showing percent of merged, open and closed pr/issues

Open CaedenPH opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

It would be cool to have a card that shows the % of merged, open and closed pull requests and the % of open and closed issues.

Describe the solution you'd like

query userInfo($login: String!) {
                        user(login: $login) {
                            pullRequests {
                                totalCount
                            }
                            openPullRequests: pullRequests(states: OPEN) {
                                totalCount
                            }
                            closedPullRequests: pullRequests(states: CLOSED) {
                                totalCount
                            }
                            mergedPullRequests: pullRequests(states: MERGED) {
                                totalCount
                            }
                            issues {
                                totalCount
                            }
                            openIssues: issues(states: OPEN) {
                                totalCount
                            }
                            closedIssues: issues(states: CLOSED) {
                                totalCount
                            }
                        }
                    }`

this would be the graphql query most likely

Describe alternatives you've considered

No response

Additional context

It could be a new type of card, status card or something similiar. It could look similiar to the top langs card, with the percentage of merged/open/closed, or there could be an svg of a pi chart. Whatever works :)

CaedenPH avatar Oct 23 '22 12:10 CaedenPH

@CaedenPH, thanks for your feature request. We might implement this in the future if there is enough interest (i.e. upvotes). 👍🏻

rickstaa avatar Oct 24 '22 08:10 rickstaa

good thankyou

niuhuheyi avatar Feb 05 '23 06:02 niuhuheyi