> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitLab project issues

> Mount GitLab project issues.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Bind the reviewed endpoint with `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.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "gitlab.project.issues.observations",
  "https://gitlab.com",
  "/api/v4/projects/123/issues",
  auth,
  data,
);
```

Pass `provider` as `receivers.provider`, and the same label to the binder and as the app's `data`. Call `source.initialize`
with this profile.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "gitlab.project.issues.observations", limit: 25 } }
```

One numeric project. Issues are keyed by project IID. The created-time ordered sweep follows next page numbers and restarts at the end. Concurrent changes can move rows across offset pages. Missing issues remain published.

Each response is bounded to 100 issues and 36 KiB. The app commits observations with their
next position. [Source health and controls](https://docs.bijection.com/integrations/native-rest.md#feed-contracts)
report failures and allow recovery.

[Provider API reference](https://docs.gitlab.com/api/issues/#list-all-project-issues)

## 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 with `read_api` for
the account group list, which is scoped to the caller's memberships.

| Mode | Reviewed path | Observation key |
| - | - | - |
| `gitlab.project.merge-requests.observations` | `/api/v4/projects/PROJECT/merge_requests` | Project merge request IID |
| `gitlab.project.pipelines.observations` | `/api/v4/projects/PROJECT/pipelines` | Pipeline ID |
| `gitlab.pipeline.jobs.observations` | `/api/v4/projects/PROJECT/pipelines/PIPELINE/jobs` | Job ID, including retried jobs |
| `gitlab.project.commits.observations` | `/api/v4/projects/PROJECT/repository/commits` | Commit SHA on the default branch |
| `gitlab.account.groups.observations` | `/api/v4/groups` | Group ID of a caller-visible membership |
| `gitlab.group.subgroups.observations` | `/api/v4/groups/GROUP/subgroups` | Group ID of a visible direct subgroup |

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](https://docs.gitlab.com/api/merge_requests/) ·
[Pipelines](https://docs.gitlab.com/api/pipelines/) ·
[Jobs](https://docs.gitlab.com/api/jobs/) ·
[Commits](https://docs.gitlab.com/api/commits/) ·
[Groups](https://docs.gitlab.com/api/groups/)

## Write merge requests

Use `providerWriter` 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](https://docs.gitlab.com/api/merge_requests/)

## Create a pipeline

Use `providerWriter` 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](https://docs.gitlab.com/api/pipelines/#create-a-new-pipeline)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.