gitlabgitlab-apigitlab-wiki

How to get version_id of page in wiki with Gitlab API


With Gitlab API it is currently possible to get a specific page of the wiki, and to edit it.

With UI, when you click on a page, you can view its history and see various truncated commit hash depending on version. Is it possible to get these hash with API? Can't find anything in documentation.

Thanks!


Solution

  • It's not possible using API. The solution I used was to use the fact that the wiki is a git repo. So I cloned the wiki repo and got last relevant commit ID with git log -n1 --format="%H" My-page.md