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

Added pr reviews to stats

Open Marcholio opened this issue 4 years ago • 13 comments

Fixes: #1394

Added code reviews to stats card: Screenshot 2021-10-21 at 17 38 40

What do you think about this feature? They do not affect the rank at the moment, that's something that should be maybe added later. Also translations just default to english.

Marcholio avatar Oct 21 '21 14:10 Marcholio

Someone is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 21 '21 14:10 vercel[bot]

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02 :tada:

Comparison is base (66e5492) 97.59% compared to head (14eb504) 97.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1404      +/-   ##
==========================================
+ Coverage   97.59%   97.61%   +0.02%     
==========================================
  Files          24       24              
  Lines        4824     4869      +45     
  Branches      448      449       +1     
==========================================
+ Hits         4708     4753      +45     
  Misses        115      115              
  Partials        1        1              
Impacted Files Coverage Δ
api/index.js 96.22% <100.00%> (+0.07%) :arrow_up:
src/cards/stats-card.js 100.00% <100.00%> (ø)
src/common/icons.js 100.00% <100.00%> (ø)
src/fetchers/stats-fetcher.js 92.74% <100.00%> (+0.11%) :arrow_up:
src/translations.js 99.77% <100.00%> (+0.01%) :arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Oct 21 '21 14:10 codecov[bot]

Okay maybe we can add this PR review stat.

But we need to do it in a way which is non-breaking... TBH from initially my API decision wasn't that great (well i made this project in 15min so what can you expect)

By non-breaking, i mean that the review stat should not suddenly pop up on everyone's cards otherwise the card height will increase and will break the layout for many people on the readmes.

Maybe we can do a opt-in solution like a param show=pr_reviews

anuraghazra avatar Oct 21 '21 15:10 anuraghazra

Yeah I agree. Changed the PR so that "reviews" are hidden by default and visible only when a separate "show" parameter is passed in. Also updated readme about the new feature.

Marcholio avatar Oct 23 '21 10:10 Marcholio

Cant' wait to see the feature merged.

kerthcet avatar Feb 19 '22 03:02 kerthcet

Hey @FayasNoushad , I saw this pr is approved already, what should we do to push this forward then, I'm eager for this feature.

kerthcet avatar Feb 19 '22 03:02 kerthcet

kindly ping @anuraghazra

kerthcet avatar Feb 22 '22 09:02 kerthcet

@kerthcet I fully understand that this is a feature you want. Pinging the repository author, however, does not speed up the PR review process. We already got an alert when you posted https://github.com/anuraghazra/github-readme-stats/pull/1404#issuecomment-1045631301. It only puts more stress on the repository collaborators who maintain this project in their free time.

There are currently several other PRs open which have a higher priority (e.g. https://github.com/anuraghazra/github-readme-stats/issues/1 and https://github.com/anuraghazra/github-readme-stats/pull/1186). We, therefore, can not give you an ETA for this feature.

I would therefore advise you to fork this project, for now, merge #1404 and create your own vercel instance (see https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance).

Hope that helps. Let me know if you have any questions

rickstaa avatar Feb 22 '22 10:02 rickstaa

Sorry guys, my intension here was to check whether this pr is forgotten for approved since last year. Thanks for syncing the information. Apologize again.

kerthcet avatar Feb 22 '22 10:02 kerthcet

@kerthcet No problem I understand. Feel free to let me know if you run into problems merging this PR on your own fork and deploying it on your own vercel instance.

rickstaa avatar Feb 22 '22 10:02 rickstaa

This looks good, will give final review soon.

GOSH I still regret the decision to add the hide param. Should've been better to put show param as default.

anuraghazra avatar Feb 22 '22 14:02 anuraghazra

Revisit this pr again, any progress?

kerthcet avatar Apr 23 '22 04:04 kerthcet

Any progress on this branch?

Harrypotterrrr avatar May 12 '22 21:05 Harrypotterrrr

@Marcholio @rickstaa

изображение

I have merged master branch and refactored the code a little. Please check it and write about your thoughts. If you didn't liked the changed feel free to force push them back.

TODO:

  • [ ] translations #2825
  • [x] docs

qwerty541 avatar Jun 14 '23 03:06 qwerty541

@merged into master. @Marcholio thanks for your contribution!

rickstaa avatar Jun 15 '23 07:06 rickstaa