chore(metadata): fix typo (#9901)

This commit is contained in:
洪布斯 2022-09-26 14:32:05 +08:00 committed by GitHub
parent b80cf5f095
commit c625cc3071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,9 +92,9 @@ const fetchCommits = async (
}
}
}`
const respnose = (await octokit.graphql<ApiResponse>(query)).repository.object
const response = (await octokit.graphql<ApiResponse>(query)).repository.object
return Object.fromEntries(
Object.entries(respnose).map(([key, result]) => {
Object.entries(response).map(([key, result]) => {
const index = +key.replace('path', '')
return [index, result]
})