Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pr reviews to stats #1404

Merged
merged 7 commits into from
Jun 15, 2023
Merged

Conversation

Marcholio
Copy link
Contributor

@Marcholio Marcholio commented Oct 21, 2021

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.

@vercel
Copy link

vercel bot commented Oct 21, 2021

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.

@github-actions github-actions bot added the card-i18n Card text translations. label Oct 21, 2021
@codecov
Copy link

codecov bot commented Oct 21, 2021

Codecov Report

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

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%) ⬆️
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%) ⬆️
src/translations.js 99.77% <100.00%> (+0.01%) ⬆️

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

@anuraghazra
Copy link
Owner

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

@Marcholio
Copy link
Contributor Author

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.

This was referenced Feb 18, 2022
@kerthcet
Copy link

Cant' wait to see the feature merged.

@kerthcet
Copy link

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

@rickstaa rickstaa added the enhancement New feature or request. label Feb 19, 2022
@kerthcet
Copy link

kindly ping @anuraghazra

@rickstaa
Copy link
Collaborator

@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 #1404 (comment). 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. #1 and #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

@kerthcet
Copy link

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.

@rickstaa
Copy link
Collaborator

@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.

@anuraghazra
Copy link
Owner

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.

@kerthcet
Copy link

Revisit this pr again, any progress?

@Harrypotterrrr
Copy link

Any progress on this branch?

@rickstaa rickstaa force-pushed the master branch 2 times, most recently from 86aafe8 to 8bc69e7 Compare January 21, 2023 16:47
@rickstaa rickstaa mentioned this pull request May 30, 2023
2 tasks
@github-actions github-actions bot added documentation Improvements or additions to documentation. stats-card Feature, Enhancement, Fixes related to stats the stats card. labels Jun 14, 2023
@qwerty541
Copy link
Collaborator

qwerty541 commented Jun 14, 2023

@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:

@qwerty541 qwerty541 requested a review from rickstaa June 14, 2023 03:34
@rickstaa rickstaa merged commit 1bb65dd into anuraghazra:master Jun 15, 2023
@rickstaa
Copy link
Collaborator

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

@Marcholio Marcholio deleted the feat/pr-review-stat branch June 15, 2023 09:51
devantler pushed a commit to devantler/github-readme-stats that referenced this pull request Sep 24, 2023
* Added pr reviews to stats

* Add 'show' query parameter

* Fix show test

* refactoring

* cleanup

* refactor: restructure stats-card code

---------

Co-authored-by: Markus <[email protected]>
Co-authored-by: Alexandr <[email protected]>
Co-authored-by: rickstaa <[email protected]>
setdebarr pushed a commit to setdebarr/github-readme-stats that referenced this pull request Jan 12, 2024
* Added pr reviews to stats

* Add 'show' query parameter

* Fix show test

* refactoring

* cleanup

* refactor: restructure stats-card code

---------

Co-authored-by: Markus <[email protected]>
Co-authored-by: Alexandr <[email protected]>
Co-authored-by: rickstaa <[email protected]>
jacobbexten pushed a commit to jacobbexten/github-readme-stats that referenced this pull request Nov 6, 2024
* Added pr reviews to stats

* Add 'show' query parameter

* Fix show test

* refactoring

* cleanup

* refactor: restructure stats-card code

---------

Co-authored-by: Markus <[email protected]>
Co-authored-by: Alexandr <[email protected]>
Co-authored-by: rickstaa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
card-i18n Card text translations. documentation Improvements or additions to documentation. enhancement New feature or request. stats-card Feature, Enhancement, Fixes related to stats the stats card.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add code review to Github Stats Card
7 participants