improve performance of [GithubLastCommit] [GitlabLastCommit] [GiteaLastCommit] (#10046)

* improve performance of last commit badges

* pass param in the right place
This commit is contained in:
chris48s
2024-03-25 15:12:28 +00:00
committed by GitHub
parent 5405dad389
commit 3c60625c51
3 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ export default class GitlabLastCommit extends GitLabBase {
url: `${baseUrl}/api/v4/projects/${encodeURIComponent(
project,
)}/repository/commits`,
options: { searchParams: { ref_name: ref, path } },
options: { searchParams: { ref_name: ref, path, per_page: 1 } },
schema,
httpErrors: httpErrorsFor('project not found'),
})