mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-08-13 06:23:32 +00:00
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:
co-authored by
Markus
Alexandr
rickstaa
parent
c86cc72df2
commit
1bb65ddc29
@@ -12,6 +12,7 @@ const data_stats = {
|
||||
repositoriesContributedTo: { totalCount: 61 },
|
||||
contributionsCollection: {
|
||||
totalCommitContributions: 100,
|
||||
totalPullRequestReviewContributions: 50,
|
||||
},
|
||||
pullRequests: { totalCount: 300 },
|
||||
openIssues: { totalCount: 100 },
|
||||
@@ -116,6 +117,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 100,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 300,
|
||||
rank,
|
||||
});
|
||||
@@ -146,6 +148,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 100,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 300,
|
||||
rank,
|
||||
});
|
||||
@@ -182,6 +185,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 1000,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 300,
|
||||
rank,
|
||||
});
|
||||
@@ -209,6 +213,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 1000,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 200,
|
||||
rank,
|
||||
});
|
||||
@@ -234,6 +239,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 100,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 400,
|
||||
rank,
|
||||
});
|
||||
@@ -259,6 +265,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 100,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 300,
|
||||
rank,
|
||||
});
|
||||
@@ -284,6 +291,7 @@ describe("Test fetchStats", () => {
|
||||
totalCommits: 100,
|
||||
totalIssues: 200,
|
||||
totalPRs: 300,
|
||||
totalReviews: 50,
|
||||
totalStars: 300,
|
||||
rank,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user