Skip to content

Connot get/set file mode/permissons through API #36668

@hramrach

Description

@hramrach

Feature Description

Looking through API docs I do not see any way to get and set file permissions/mode.

It is important for some uses if a file is executable, and it's definitely important if it's a symlink.

This state cannot be retrieved/set through the repository/contents API.

Screenshots

https://gitea.com/api/v1/repos/{owner}/{repo}/contents/{filepath}

{

"author": 

{

"email": "user@example.com",
"name": "string"

},
"branch": "string",
"committer":
{

"email": "user@example.com",
"name": "string"

},
"content": "string",
"dates":

{
    "author": "2019-08-24T14:15:22Z",
    "committer": "2019-08-24T14:15:22Z"
},
"from_path": "string",
"message": "string",
"new_branch": "string",
"sha": "string",
"signoff": true

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/apiConcerns mainly the APItype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions