mkdir testrepo
cd testrepo
exec git init --initial-branch=main .

exec touch rules.yml
cp ../src/.pint.hcl .
env GIT_AUTHOR_NAME=pint
env GIT_AUTHOR_EMAIL=pint@example.com
env GIT_COMMITTER_NAME=pint
env GIT_COMMITTER_EMAIL=pint@example.com
exec git add .
exec git commit -am 'import rules and config'

exec git checkout -b v2

env GITLAB_AUTH_TOKEN=1
! exec pint -l error --no-color ci
! stdout .
cmp stderr ../stderr.txt

-- stderr.txt --
level=ERROR msg="Execution completed with error(s)" err="failed to create a new GitLab client: failed to parse base URL: parse \"://bad/api/v4/\": missing protocol scheme"
-- src/.pint.hcl --
ci {
  baseBranch = "main"
}
repository {
  gitlab {
    uri        = "://bad"
    timeout    = "30s"
    project    = "1234"
  }
}
