GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdRepositoryArchive

AI-generated

Summary

Download an archive of a specific GitLab project's repository at a given commit SHA, optionally specifying archive format, subdirectory path, and whether to include LFS blobs.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project whose repository archive is to be downloaded.
  • sha — The commit SHA corresponding to the version of the repository to archive and download.
  • format — The archive format (e.g., 'tar.gz') to be used for the repository archive.
  • path — A specific subfolder within the repository to include in the archive instead of the entire repository.
  • include_lfs_blobs — Boolean flag to include or exclude Git Large File Storage (LFS) objects from the archive; defaults to true.

Output shape

a binary file representing the project's repository archive

The archive returned corresponds to the specified parameters, such as commit SHA, format, and path. Authentication is required by default unless explicitly skipped. No pagination or enveloping of the response applies.

Links

Discussion