Skip to main content

GitLab 所在地

GitLab 集成支持从 gitlab.com 或自行托管的 GitLab 中加载目录实体。 实体可添加到静态目录配置或在目录-导入插件。

integrations:
gitlab:
- host: gitlab.com
token: ${GITLAB_TOKEN}

注意:为方便起见,GitLab 公共提供程序会在启动时自动添加,因此只需在提供 token 时列出即可。

正下方gitlab键是一个提供商配置列表,您可以在其中列出想要获取数据的 GitLab 提供商。 每个条目都是一个最多包含四个元素的结构:

  • host: The host of the GitLab instance, e.g. gitlab.company.com. * token (optional): An authentication token as expected by GitLab. The token need at least api, read_repository and write_repository scopes. If this is not supplied, anonymous access will be used. * apiBaseUrl (optional): The URL of the GitLab API. For self-hosted installations, it is commonly at https://<host>/api/v4. For gitlab.com, this configuration is not needed as it can be inferred. * baseUrl (optional): The base URL for this provider, e.g. https://gitlab.com. If this is not provided, it is assumed to be https://{host}.