resolve_reference
: Return a GitLab organization's projects as local inventory targets
gitlab_inventory::count
: Example plan, prints number of Targets from inventorygitlab_inventory::latest_semver_tags
: Report the highest SemVer tag for each repo (that has SemVer tags)gitlab_inventory::required_checks
: List and/or set which PR checks are required on each repogitlab_inventory::workflows
: Return repos with GitLab Actions workflows
Return a GitLab organization's projects as local inventory targets
Supports noop? false
Data type: String[1]
GitLab group name (or user login) with repos
Data type: String[1]
URL of GitLab instance's base API endpoint
Data type: Optional[String[1]]
Optional GitLab personal OAuth token, which may be useful to avoid the GitLab API's unauthenticated rate limits
Data type: Boolean
When true, includes archived projects in results.
Data type: Optional[Array[Enum['public','internal','private']]]
When set, filters projects by visibility
Data type: Optional[Array[String[1]]]
repo names/patterns to include in inventory, drops all other repos
Data type: Optional[Array[String[1]]]
repo names/patterns to reject from inventory (can reject targets in allow_list)
Data type: String[1]
Bolt Transport type of repository Targets
Data type: Optional[String[1]]
Additional GEM_PATH path for ruby gems (to find octokit
)
Example plan, prints number of Targets from inventory
The following parameters are available in the gitlab_inventory::count
plan.
Data type: TargetSpec
By default: repo_targets
group from inventory
Default value: 'repo_targets'
Report the highest SemVer tag for each repo (that has SemVer tags)
- Note ONLY reports repos with SemVer tags (ignores
/^v/
and/-d$/
)
The following parameters are available in the gitlab_inventory::latest_semver_tags
plan.
Data type: TargetSpec
By default: repo_targets
group from inventory
Default value: 'repo_targets'
Data type: Sensitive[String[1]]
GitLab API token. By default, this will use the GITHUB_API_TOKEN
environment variable.
Default value: (system::env('GITHUB_API_TOKEN'))
List and/or set which PR checks are required on each repo
The following parameters are available in the gitlab_inventory::required_checks
plan.
Data type: TargetSpec
By default: repo_targets
group from inventory
Default value: 'repo_targets'
Data type: Sensitive[String[1]]
GitLab API token. By default, this will use the GITHUB_API_TOKEN
environment variable.
Default value: (system::env('GITHUB_API_TOKEN'))
Data type: Optional[String[1]]
Optional comma-delimited list of required PR Checks to set on all repos If defined, this will overwrite ALL repos' required PR checks
Default value: undef
Return repos with GitLab Actions workflows
The following parameters are available in the gitlab_inventory::workflows
plan.
Data type: TargetSpec
By default: repo_targets
group from inventory
Default value: get_targets('repo_targets')
Data type: Sensitive[String[1]]
GitLab API token. By default, this will use the GITHUB_API_TOKEN
environment variable.
Default value: (system::env('GITHUB_API_TOKEN'))