Were you able to accomplish this? I am looking at a combination of repository files, commits. Repo files has commit_id and last_commit_id but not the full list of commits.
The https://docs.gitlab.com/ce/api/repositories.html api could solve this by using the compare method.
However to do a --name-only action, you’d better to add a post-task to read all diff names from the response json.