mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-05 04:20:12 +00:00
enhance(api): expose file mode in contents API response (#38713)
This commit is contained in:
@@ -148,6 +148,7 @@ func getFileContentsByEntryInternal(ctx context.Context, repo *repo_model.Reposi
|
||||
Name: entry.Name(),
|
||||
Path: opts.TreePath,
|
||||
SHA: entry.ID.String(),
|
||||
Mode: entry.Mode().String(),
|
||||
Size: entry.GetSize(ctx, gitRepo),
|
||||
URL: &selfURLString,
|
||||
Links: &api.FileLinksResponse{
|
||||
|
||||
Reference in New Issue
Block a user