Refactor: Stats card: Set username param type for totalCommitsFetcher function inside data fetcher (#3068)

This commit is contained in:
Alexandr Garbuzov
2023-08-14 11:44:54 +03:00
committed by GitHub
parent c3a33ca563
commit 48830adefa
+1 -1
View File
@@ -143,7 +143,7 @@ const statsFetcher = async (username) => {
/**
* Fetch all the commits for all the repositories of a given username.
*
* @param {*} username GitHub username.
* @param {string} username GitHub username.
* @returns {Promise<number>} Total commits.
*
* @description Done like this because the GitHub API does not provide a way to fetch all the commits. See