Add `symlink` action to commits endpoint in the REST API

Proposal

Commits can be created through the REST API endpoint commits. It supports actions to create, move, delete, and also chmod files.

A community member asked on the forum to add support for symlinks as an action. https://forum.gitlab.com/t/create-symlinks-via-api/93244

Is there a way to create symlinks via Rest API?
I only found a way to create executable files:
POST /projects/:id/repository/commits

{
  "branch": "main",
  "commit_message": "some commit message",
  "actions": [
    {
      "action": "create",
      "file_path": "foo/bar",
      "content": "some content"
    },
    {
      "action": "chmod",
      "file_path": "foo/bar",
      "execute_filemode": true
    }
  ]
}
Is there somthing similar for symlinks?
Edited Sep 29, 2023 by Sean Carroll
Assignee Loading
Time tracking Loading