Skip to content

Commit 4c5056f

Browse files
authored
Document GitLab support (#147)
2 parents 05ac972 + df46430 commit 4c5056f

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

content/_index.en.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,18 +327,20 @@ The default configuration can be found in `config/default.json`. The full refere
327327
"timestampPrefix": "Boolean. Set to true to prefix the timestamp of the error message with the current date (in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ); see below"
328328
},
329329
"reporter": { // Reporter mechanism to create GitHub issues when terms content is inaccessible
330-
"githubIssues": {
331-
"repositories": {
332-
"declarations": "GitHub repository where to create issues; expected format: <owner>/<repository>",
333-
"versions": "GitHub repository of versions associated with the declarations; expected format: <owner>/<repository>",
334-
"snapshots": "GitHub repository of snapshots associated with the declarations; expected format: <owner>/<repository>"
335-
}
330+
"type": "The type of reporter to use; can be 'github' or 'gitlab'",
331+
"repositories": {
332+
"declarations": "GitHub or GitLab repository where to create issues; expected format: <owner>/<repository>",
333+
"versions": "GitHub or GitLab repository of versions associated with the declarations; expected format: <owner>/<repository>",
334+
"snapshots": "GitHub or GitLab repository of snapshots associated with the declarations; expected format: <owner>/<repository>"
336335
}
336+
"baseURL": "Base URL of the GitLab instance (only relevant if 'type' is 'gitlab')",
337+
"apiBaseURL": "Base URL of the GitLab API (only relevant if 'type' is 'gitlab')"
337338
},
338339
"dataset": { // Release mechanism to create dataset periodically
339340
"title": "Title of the dataset; recommended to be the name of the instance that generated it",
340-
"versionsRepositoryURL": "GitHub repository where the dataset will be published as a release; recommended to be the versions repository for discoverability and tagging purposes",
341-
"publishingSchedule": "Cron expression to define the dataset publishing schedule; see below"
341+
"versionsRepositoryURL": "GitHub or GitLab repository where the dataset will be published as a release; recommended to be the versions repository for discoverability and tagging purposes",
342+
"publishingSchedule": "Cron expression to define the dataset publishing schedule; see below",
343+
"apiBaseURL": "Base URL of the GitLab API (only relevant if 'type' is 'gitlab')"
342344
},
343345
"collection-api": { // Collection metadata API
344346
"port": "The port number on which the API will listen for incoming requests",
@@ -415,7 +417,11 @@ Environment variables can be passed in the command-line or provided in a `.env`
415417

416418
- `OTA_ENGINE_SMTP_PASSWORD`: a password for email server authentication, in order to send email notifications.
417419
- `OTA_ENGINE_SENDINBLUE_API_KEY`: a SendInBlue API key, in order to send email notifications with that service.
418-
- `OTA_ENGINE_GITHUB_TOKEN`: a token with repository privileges to access the [GitHub API](https://github.com/settings/tokens).
420+
- `OTA_ENGINE_GITHUB_TOKEN`: a token with repository privileges to access the [GitHub API](https://github.com/settings/tokens) to create issues and publish dataset releases.
421+
- `OTA_ENGINE_GITLAB_TOKEN`: a token with repository privileges to access the [GitLab API](https://gitlab.com/profile/personal_access_tokens) to create issues.
422+
- `OTA_ENGINE_GITLAB_RELEASES_TOKEN`: a token with repository privileges to access the [GitLab API](https://gitlab.com/profile/personal_access_tokens) to publish dataset releases.
423+
424+
If both `OTA_ENGINE_GITHUB_TOKEN` and `OTA_ENGINE_GITLAB_TOKEN` are defined, GitHub takes precedence for dataset publishing.
419425

420426
If an outgoing HTTP/HTTPS proxy to access the Internet is required, it is possible to provide it through the `HTTP_PROXY` and `HTTPS_PROXY` environment variable.
421427

0 commit comments

Comments
 (0)