gitlab_applicationgitlab_branchgitlab_commitgitlab_epicgitlab_groupgitlab_group_access_requestgitlab_group_hookgitlab_group_iterationgitlab_group_membergitlab_group_projectgitlab_group_push_rulegitlab_group_subgroupgitlab_group_variablegitlab_hookgitlab_instance_variablegitlab_issuegitlab_merge_requestgitlab_merge_request_changegitlab_my_eventgitlab_my_issuegitlab_my_projectgitlab_projectgitlab_project_access_requestgitlab_project_container_registrygitlab_project_deploymentgitlab_project_iterationgitlab_project_jobgitlab_project_membergitlab_project_pages_domaingitlab_project_pipelinegitlab_project_pipeline_detailgitlab_project_protected_branchgitlab_project_repositorygitlab_project_repository_filegitlab_project_variablegitlab_settinggitlab_snippetgitlab_usergitlab_user_eventgitlab_version
Table: gitlab_project_repository
The gitlab_project_repository
can be used to list out the files/folders within the repository.
However, you must specify a project_id
in the where or join clause.
Examples
List all files/folders for a project repository
select *from gitlab_project_repositorywhere project_id = 123;
List all files for a project repository
select *from gitlab_project_repositorywhere project_id = 123 and type = 'blob'
List all folders for a project repository
select *from gitlab_project_repositorywhere project_id = 123 and type = 'tree'
Schema for gitlab_project_repository
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
id | text | The ID of the file or folder within the repository | |
mode | text | The mode of the file or folder within the repository | |
name | text | The name of the file or folder within the repository | |
path | text | The path of the file or folder within the repository | |
project_id | bigint | = | The ID of the project this repository belongs to - link `gitlab_project.id`. |
type | text | The type of the file or folder within the repository |