---
# Here we check your GitLab project settings and provide recommendations on which
# settings you should change, or how to decide what to choose.
# You need to have a variable called GL_TOKEN set, which contains a Project
# Access Token with read_api or api access.
#
# If you want problems to be automatically resolved, set the variable
# GITLAB_RECOMMENDED_AUTO_FIX to "true".
#
# Each check lives in its own file under checks/. To disable an individual
# check, override its job with `rules: - when: never` in your .gitlab-ci.yml,
# or do not include the file. To add a new check, drop a new YAML file in
# checks/ and include it here.
include:
  - remote: https://jobs.just-ci.dev/recos/project-automation/generic.yaml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/_base.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/merge-requests-enabled.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/merge-method.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/only-allow-merge-if-pipeline-succeeds.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/only-allow-merge-if-all-discussions-resolved.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/allow-merge-on-skipped-pipeline.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/remove-source-branch-after-merge.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/autoclose-referenced-issues.yml
  - remote: https://jobs.just-ci.dev/recos/project-automation/gitlab/checks/protected-tags-v.yml

# Warning job that fires on protected refs when GL_TOKEN is missing.
gitlab:recommended:GL_TOKEN:
  extends: .fix:GL_TOKEN
  variables:
    JOB_NAME: gitlab:recommended
