
Get GitLab project files, license, and default branch
Source:R/archive-gitlab.R
gitlab_tree_files.RdFetches a GitLab project's file tree (following pagination, since
GitLab's tree endpoint caps at 100 entries per page, unlike GitHub's
single-request Git Trees API), its detected licence, and default branch.
File sizes are backfilled with a single batched GraphQL
repository.blobs(paths: [...]) query, since the REST tree listing does
not include size.
Value
a list with:
gatedlogical;
TRUEonly when the project could not be listed at all (invalid/inaccessible)reasoncharacter reason, or
NAfilesdata.frame with repo/clean_repo/name/path/ download_url/size/type, or
NULLwhen the tree could not be fetcheddefault_branchcharacter
licensecharacter SPDX-style key (e.g. "mit"), or NA