gitlab-guard

The confirm.tools library provides a gitlab-guard CLI script to verify GitLab project settings:

usage: gitlab-guard [-h] [-d] [-f] [-n NAMESPACE] [-u URL] [project_ids ...]

Verify GitLab project settings.

positional arguments:
  project_ids                          optional specific project ID's

options:
  -h, --help                           show this help message and exit
  -d, --debug                          enable debug mode
  -f, --fix                            automatically fix violating settings
  -n NAMESPACE, --namespace NAMESPACE  an alternative GitLab namespace to check
  -u URL, --url URL                    an alternative GitLab URL

Tip

Settings for a project can be customised by providing a .gitlab-guard.yml file. Please have a look at the description of GitLabGuard for more informations.