Exclude last page link from projects/id/repository/commits endpoint
What does this MR do and why?
Excludes the last page link from endpoints that exclude total headers, as the last page cannot be calculated.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Make a request to
api/v4/projects/:id/repository/commits?page=1
-
-
Note the Link header in the response does not contain a rel="last"
link
-
Edited by Vasilii Iakliushin