theapsgroup / steampipe-plugin-gitlab

Use SQL to instantly query GitLab projects, groups and more. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/theapsgroup/gitlab
Apache License 2.0
20 stars 9 forks source link

Add 'ref' field for gitlab_project_repository table #70

Open dvaneson opened 5 months ago

dvaneson commented 5 months ago

I'd like to be able to specify the branch to use for the gitlab_project_repository table, as right now it can only ever get the file tree from the default branch from a repository.

I see in the Gitlab API Wrapper library that there is a Ref option that can be used with the ListTree API call: https://github.com/xanzy/go-gitlab/blob/main/repositories.go#L54

graza-io commented 4 months ago

Thanks, this will be in v0.7.0 - may take some time as I want to get dependencies updated also and the GitLab SDK has a few changes that require some attention ;)