enhance(api): expose file mode in contents API response (#38713)

This commit is contained in:
Mitrahsoft
2026-08-03 12:11:27 +05:30
committed by GitHub
parent 89dd456af8
commit 09f7c71e3d
9 changed files with 20 additions and 0 deletions
+1
View File
@@ -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{