Added pr reviews to stats (#1404)

* Added pr reviews to stats

* Add 'show' query parameter

* Fix show test

* refactoring

* cleanup

* refactor: restructure stats-card code

---------

Co-authored-by: Markus <markus.tyrkko@gmail.com>
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
Co-authored-by: rickstaa <rick.staa@outlook.com>
This commit is contained in:
Markus Tyrkkö
2023-06-15 09:35:09 +02:00
committed by GitHub
co-authored by Markus Alexandr rickstaa
parent c86cc72df2
commit 1bb65ddc29
10 changed files with 112 additions and 34 deletions
+2
View File
@@ -37,6 +37,7 @@ export default async (req, res) => {
number_format,
border_color,
rank_icon,
show_total_reviews,
} = req.query;
res.setHeader("Content-Type", "image/svg+xml");
@@ -95,6 +96,7 @@ export default async (req, res) => {
locale: locale ? locale.toLowerCase() : null,
disable_animations: parseBoolean(disable_animations),
rank_icon,
show_total_reviews: parseBoolean(show_total_reviews),
}),
);
} catch (err) {