gitlab_repository_file (Data Source)

The gitlab_repository_file data source allows details of a file in a repository to be retrieved.

Upstream API: GitLab REST API docs

Example Usage

data "gitlab_repository_file" "example" {
  project   = "example"
  ref       = "main"
  file_path = "README.md"
}

Schema

Required

Read-Only