# GitLab integration

> DevOps platform API for managing repositories, merge requests, pipelines, issues, releases, and project management.

- Authentication: oauth2

## Tools (44)

- **Cancel a Pipeline**: Cancels running jobs in a pipeline.
- **Create a Branch**: Creates a new branch from a ref (branch, tag, or commit SHA).
- **Create a Commit**: Creates a commit with multiple file actions (create, delete, move, update, chmod).
- **Create a File**: Creates a new file in the repository.
- **Create a Label**: Creates a new project label.
- **Create a Merge Request**: Creates a new merge request.
- **Create a Merge Request Note (Comment)**: Creates a comment on a merge request.
- **Create an Issue**: Creates a new issue in a project.
- **Create an Issue Note (Comment)**: Creates a comment on an issue.
- **Create a Pipeline**: Triggers a new pipeline on a branch or tag.
- **Create a Release**: Creates a release associated with a Git tag.
- **Delete a Branch**: Deletes a branch. Cannot delete the default or protected branches.
- **Delete a File**: Deletes a file from the repository.
- **Delete a Label**: Deletes a project label by ID or name.
- **Delete a Release**: Deletes a release. Does not delete the associated Git tag.
- **Get a Branch**: Returns information about a single repository branch.
- **Get a File**: Retrieves file metadata and Base64-encoded content from the repository.
- **Get a Project**: Returns detailed information about a project including repository metadata.
- **Get a Single Commit**: Returns a single commit by its SHA or ref name.
- **Get a Single Issue**: Returns a single project issue by its IID.
- **Get a Single Merge Request**: Returns a single merge request by its IID.
- **Get a Single Pipeline**: Returns a single pipeline by its ID.
- **Get a Single Release**: Returns a single release for the given tag.
- **Get Authenticated User**: Returns information about the currently authenticated user.
- **Get Latest Pipeline**: Returns the latest pipeline for the default branch or a specified ref.
- **Get Raw File Content**: Returns the raw file content (not Base64-encoded) from the repository.
- **List Branches**: Lists all repository branches with optional search and regex filtering.
- **List Commits**: Returns a paginated list of repository commits for a project.
- **List Issue Notes (Comments)**: Returns a list of notes (comments) on an issue.
- **List Merge Request Notes (Comments)**: Returns a list of notes (comments) on a merge request.
- **List Project Issues**: Returns a paginated list of issues for a project with filtering options.
- **List Project Labels**: Returns a list of labels for a project.
- **List Project Merge Requests**: Returns a paginated list of merge requests for a project.
- **List Project Pipelines**: Returns a paginated list of pipelines for a project.
- **List Releases**: Returns a paginated list of releases for a project.
- **List Repository Tree**: Lists files and directories in the repository tree.
- **List User Projects**: Lists projects for the specified user or the authenticated user.
- **Merge a Merge Request**: Accepts and merges a merge request.
- **Retry a Pipeline**: Retries failed or canceled jobs in a pipeline.
- **Update a File**: Updates the content of an existing file in the repository.
- **Update a Label**: Updates an existing project label.
- **Update a Merge Request**: Updates an existing merge request. Only included fields are changed.
- **Update an Issue**: Updates an existing issue. Only included fields are changed.
- **Update a Release**: Updates a release associated with a Git tag. Only included fields are changed.

## Related prompts

- [Turn Zendesk bug tickets into clean GitLab issues](https://www.generalinput.com/prompts/turn-zendesk-bug-tickets-into-clean-gitlab-issues.md)
- [Auto-draft release notes from GitLab to Notion and Slack](https://www.generalinput.com/prompts/auto-draft-release-notes-from-gitlab-to-notion-and-slack.md)
- [Daily Slack digest of open GitLab merge requests](https://www.generalinput.com/prompts/daily-slack-digest-of-open-gitlab-merge-requests.md)
- [Link merged GitLab MRs back to Linear issues](https://www.generalinput.com/prompts/link-merged-gitlab-mrs-back-to-linear-issues.md)
- [Smart Slack alerts for failed GitLab pipelines](https://www.generalinput.com/prompts/smart-slack-alerts-for-failed-gitlab-pipelines.md)

Connect GitLab in General Input: https://www.generalinput.com/apps/gitlab