improve performance of [GithubLastCommit] [GitlabLastCommit] [GiteaLastCommit] (#10046)
* improve performance of last commit badges * pass param in the right place
This commit is contained in:
@@ -98,7 +98,7 @@ export default class GithubLastCommit extends GithubAuthV3Service {
|
||||
async fetch({ user, repo, branch, path }) {
|
||||
return this._requestJson({
|
||||
url: `/repos/${user}/${repo}/commits`,
|
||||
options: { searchParams: { sha: branch, path } },
|
||||
options: { searchParams: { sha: branch, path, per_page: 1 } },
|
||||
schema,
|
||||
httpErrors: httpErrorsFor(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user