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

This commit is contained in:
Mitrahsoft
2026-08-03 06:41:27 +00:00
committed by GitHub
parent 89dd456af8
commit 09f7c71e3d
9 changed files with 20 additions and 0 deletions
+2
View File
@@ -139,6 +139,8 @@ type ContentsResponse struct {
// `type` will be `file`, `dir`, `symlink`, or `submodule`
Type string `json:"type"`
// `mode` is the Git file mode as an octal string, e.g. `100644` (regular), `100755` (executable), `120000` (symlink), `160000` (submodule)
Mode string `json:"mode"`
// Size is the file size in bytes
Size int64 `json:"size"`
// `encoding` is populated when `type` is `file`, otherwise null