providerEndpoint from @bijectionhq/app-rest.
Use a project-scoped GitLab token with read_api. Bind private-token as a sealed header, or use bearer OAuth with the same read access.
provider as receivers.provider, and the same label to the binder and as the app’s data. Call source.initialize
with this profile.
Merge requests, pipelines, jobs, commits, and groups
Use the same mounting pattern for the modes below. Use one protected mount per mode and fixed route. Seal a read API credential with access to the project, pipeline or group. The HTTPS origin can be GitLab.com or a reviewed self-managed GitLab instance. Use a user credential withread_api for
the account group list, which is scoped to the caller’s memberships.
The limits are 1–100 records and 36 KiB per page. Each sweep carries only
the next consecutive page number back to the reviewed route. A full page
without a next link probes the next page. A terminal page restarts the
sweep on the next poll. Records that move between offset pages can be missed
in one sweep. Disappearing records remain published. Pipeline and job modes
observe work managed by GitLab.
Merge requests ·
Pipelines ·
Jobs ·
Commits ·
Groups
Write merge requests
UseproviderWriter with mode gitlab.project.merge-requests.create-update,
endpoint https://gitlab.com, scope [projectId] with the numeric ID as text,
and receivers.writers[mode]. Pass the same protected label to the writer and as the app’s data, and seal a
project token with write API permission as the PRIVATE-TOKEN header or an
OAuth bearer token with equivalent access. Submit a create or update with up
to 24 KiB of JSON. An update takes the project merge request IID as text.
HTTP 201 or 200 with the matching IID acknowledges the operation. Commands use exact keys and one send per task, with no read cursor.
GitLab merge request API
Create a pipeline
UseproviderWriter with mode gitlab.project.pipelines.create,
endpoint https://gitlab.com, scope [projectId] and receivers.writers[mode]. Pass the same protected label to the writer and as the app’s data, and seal a credential that can create a pipeline in the project.
Submit a create command with a branch or tag in ref and an optional
pipeline inputs object, in up to 24 KiB of JSON. HTTP 201 with a
pipeline ID acknowledges GitLab’s admission. The writer uses the exact command key. The pipelines feed reports subsequent GitLab status.
GitLab pipelines API