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

# GitLab Merge Request Reviews and CI/CD

> Set up automated GitLab merge request reviews and API-driven test runs

> [card] [Pull request testing](https://docs.qa.tech/pr-testing/gitlab.md)
>
> Review a merge request.

> [card] [Regression testing](https://docs.qa.tech/regression-testing/gitlab.md)
>
> Run a test plan from GitLab CI.

There are two independent ways to integrate GitLab with QA.tech. Pick the one that matches what you want to do. They use different setup pages and different credentials.

| | **A) GitLab CI** | **B) GitLab MR Reviews** |
| :- | :- | :- |
| **What it does** | Triggers QA.tech test plans from your CI/CD pipeline | Runs exploratory tests on merge requests and responds to `@qa.tech` |
| **Setup page** | [Integrations → GitLab CI](https://app.qa.tech/current-project/settings/integrations/gitlab) | Integrations → **GitLab MR Reviews** |
| **GitLab sign-in** | **Not required** | **Required** — so QA.tech can handle webhooks and post on MRs |
| **Credential** | QA.tech API key from Organization Settings → API Keys, stored as the GitLab CI/CD variable `QA_TECH_API_TOKEN` | The GitLab account you sign in with (recommended: a dedicated **service user**) |

GitLab sign-in is only needed for path **B**. Path **A** authenticates with a QA.tech API key.

* Path **A** setup is on [GitLab regression testing](https://docs.qa.tech/regression-testing/gitlab.md#set-it-up).
* Path **B** setup is on [Set up GitLab MR reviews](https://docs.qa.tech/pr-testing/gitlab.md#set-up-gitlab-mr-reviews).

## Related documentation

* **[GitLab pull request testing](https://docs.qa.tech/pr-testing/gitlab.md)** - Start merge request reviews, after merge, or for a mobile build
* **[GitLab regression testing](https://docs.qa.tech/regression-testing/gitlab.md)** - Run test plans from GitLab CI
* **[API Reference](https://docs.qa.tech/api-reference/runs/start-test-run.md)** - Complete API documentation
* **[Test Plans](https://docs.qa.tech/core-concepts/test-plans.md)** - Create and organize test plans
* **[Preview Environments](https://docs.qa.tech/core-concepts/applications-and-environments.md#preview-environments)** - Dynamic preview testing
* **[Environment custom headers](https://docs.qa.tech/core-concepts/applications-and-environments.md#custom-headers)** - Persist auth and protection-bypass headers from the Start Run API
* **[Environment basic auth](https://docs.qa.tech/core-concepts/applications-and-environments.md#basic-auth)** - Persist domain-scoped HTTP basic auth from the Start Run API
* **[PR Testing for Mobile Apps](https://docs.qa.tech/pr-testing/agents/mobile.md)** - Upload MR binaries and pin change reviews with `applicationBuildShortId`


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