gitlab
How to get these credentialsAccess to one GitLab instance's REST API v4: an access token and, for self-managed GitLab, the instance's base URL (default https://gitlab.com).
CREATE SECRET gitlab (
TYPE gitlab,
token '<GITLAB_TOKEN>', -- secret
base_url '<base_url>',
send_as '<send_as>',
per_page '<per_page>',
timeout '<timeout>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| token secret | VARCHAR | β | Personal, project or group access token (read_api scope is enough), or an OAuth access token. Optional for public projects on gitlab.com. |
| base_url | VARCHAR | β | Root URL of the GitLab instance without /api/v4, e.g. 'https://gitlab.example.com'. Default 'https://gitlab.com'. |
| send_as | VARCHAR | β | How the token is sent: 'bearer' (default; Authorization: Bearer), 'private' (PRIVATE-TOKEN header) or 'job' (JOB-TOKEN header, for CI job tokens). |
| per_page | BIGINT | β | Items requested per API page, 1 to 100 (default 100). |
| timeout | DOUBLE | β | Per-request timeout in seconds (default 30). |
The worker doesn't mark which keys are required.
Needed by groupsprojectsprojectmembersissuesissue_notesmerge_requestsmerge_request_notesmerge_request_approvalsmerge_request_diff_statscommitsbranches and 9 more functions