Skip to content

GitLab web repository files last commit changed message

Hello, at this time i use GET /projects/:id/repository/tree API to retrieve files and the File response is:

{
        "id": "9f4adea7e0707b8328eae311d06b5aef135da213",
        "name": "app",
        "type": "tree",
        "path": "app",
        "mode": "040000"
    }

Could you tell, how many requests you execute to fetch Last Commit and Last Update for every file/folder? Is it possible to get this information with one request?

Screen_Shot_2019-05-20_at_23.33.13

I have only found the next request chain: GET /projects/:id/repository/tree -> n * GET /projects/:id/repository/commits?ref=xxx&path=yyy&per_page=1. But it produces so many API requests.

Edited by Eugene Shapovalov
OSZAR »