Sim

GitLab

Interact with GitLab projects, issues, merge requests, and pipelines

GitLab is a comprehensive DevOps platform that allows teams to manage, collaborate on, and automate their software development lifecycle. With GitLab, you can effortlessly handle source code management, CI/CD, reviews, and collaboration in a single application.

With GitLab in Sim, you can:

  • Manage projects and repositories: List and retrieve your GitLab projects, access details, and organize your repositories
  • Work with issues: List, create, and comment on issues to track work and collaborate effectively
  • Handle merge requests: Review, create, and manage merge requests for code changes and peer reviews
  • Automate CI/CD pipelines: Trigger, monitor, and interact with GitLab pipelines as part of your automation flows
  • Collaborate with comments: Add comments to issues or merge requests for efficient communication within your team

Using Sim’s GitLab integration, your agents can programmatically interact with your GitLab projects. Automate project management, issue tracking, code reviews, and pipeline operations seamlessly in your workflows, optimizing your software development process and enhancing collaboration across your team.

Usage Instructions

Integrate GitLab into the workflow. Can manage projects, issues, merge requests, pipelines, and add comments. Supports all core GitLab DevOps operations.

Tools

gitlab_list_projects

List GitLab projects accessible to the authenticated user

Input

ParameterTypeRequiredDescription
ownedbooleanNoLimit to projects owned by the current user
membershipbooleanNoLimit to projects the current user is a member of
searchstringNoSearch projects by name
visibilitystringNoFilter by visibility (public, internal, private)
orderBystringNoOrder by field (id, name, path, created_at, updated_at, last_activity_at)
sortstringNoSort direction (asc, desc)
perPagenumberNoNumber of results per page (default 20, max 100)
pagenumberNoPage number for pagination

Output

ParameterTypeDescription
projectsarrayList of GitLab projects
totalnumberTotal number of projects

gitlab_get_project

Get details of a specific GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path (e.g., "namespace/project")

Output

ParameterTypeDescription
projectobjectThe GitLab project details

gitlab_list_issues

List issues in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
statestringNoFilter by state (opened, closed, all)
labelsstringNoComma-separated list of label names
assigneeIdnumberNoFilter by assignee user ID
milestoneTitlestringNoFilter by milestone title
searchstringNoSearch issues by title and description
orderBystringNoOrder by field (created_at, updated_at)
sortstringNoSort direction (asc, desc)
perPagenumberNoNumber of results per page (default 20, max 100)
pagenumberNoPage number for pagination

Output

ParameterTypeDescription
issuesarrayList of GitLab issues
totalnumberTotal number of issues

gitlab_get_issue

Get details of a specific GitLab issue

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
issueIidnumberYesIssue number within the project (the # shown in GitLab UI)

Output

ParameterTypeDescription
issueobjectThe GitLab issue details

gitlab_create_issue

Create a new issue in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
titlestringYesIssue title
descriptionstringNoIssue description (Markdown supported)
labelsstringNoComma-separated list of label names
assigneeIdsarrayNoArray of user IDs to assign
milestoneIdnumberNoMilestone ID to assign
dueDatestringNoDue date in YYYY-MM-DD format
confidentialbooleanNoWhether the issue is confidential

Output

ParameterTypeDescription
issueobjectThe created GitLab issue

gitlab_update_issue

Update an existing issue in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
issueIidnumberYesIssue internal ID (IID)
titlestringNoNew issue title
descriptionstringNoNew issue description (Markdown supported)
stateEventstringNoState event (close or reopen)
labelsstringNoComma-separated list of label names
assigneeIdsarrayNoArray of user IDs to assign
milestoneIdnumberNoMilestone ID to assign
dueDatestringNoDue date in YYYY-MM-DD format
confidentialbooleanNoWhether the issue is confidential

Output

ParameterTypeDescription
issueobjectThe updated GitLab issue

gitlab_delete_issue

Delete an issue from a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
issueIidnumberYesIssue internal ID (IID)

Output

ParameterTypeDescription
successbooleanWhether the issue was deleted successfully

gitlab_create_issue_note

Add a comment to a GitLab issue

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
issueIidnumberYesIssue internal ID (IID)
bodystringYesComment body (Markdown supported)

Output

ParameterTypeDescription
noteobjectThe created comment

gitlab_list_merge_requests

List merge requests in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
statestringNoFilter by state (opened, closed, merged, all)
labelsstringNoComma-separated list of label names
sourceBranchstringNoFilter by source branch
targetBranchstringNoFilter by target branch
orderBystringNoOrder by field (created_at, updated_at)
sortstringNoSort direction (asc, desc)
perPagenumberNoNumber of results per page (default 20, max 100)
pagenumberNoPage number for pagination

Output

ParameterTypeDescription
mergeRequestsarrayList of GitLab merge requests
totalnumberTotal number of merge requests

gitlab_get_merge_request

Get details of a specific GitLab merge request

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
mergeRequestIidnumberYesMerge request internal ID (IID)

Output

ParameterTypeDescription
mergeRequestobjectThe GitLab merge request details

gitlab_create_merge_request

Create a new merge request in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
sourceBranchstringYesSource branch name
targetBranchstringYesTarget branch name
titlestringYesMerge request title
descriptionstringNoMerge request description (Markdown supported)
labelsstringNoComma-separated list of label names
assigneeIdsarrayNoArray of user IDs to assign
milestoneIdnumberNoMilestone ID to assign
removeSourceBranchbooleanNoDelete source branch after merge
squashbooleanNoSquash commits on merge
draftbooleanNoMark as draft (work in progress)

Output

ParameterTypeDescription
mergeRequestobjectThe created GitLab merge request

gitlab_update_merge_request

Update an existing merge request in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
mergeRequestIidnumberYesMerge request internal ID (IID)
titlestringNoNew merge request title
descriptionstringNoNew merge request description
stateEventstringNoState event (close or reopen)
labelsstringNoComma-separated list of label names
assigneeIdsarrayNoArray of user IDs to assign
milestoneIdnumberNoMilestone ID to assign
targetBranchstringNoNew target branch
removeSourceBranchbooleanNoDelete source branch after merge
squashbooleanNoSquash commits on merge
draftbooleanNoMark as draft (work in progress)

Output

ParameterTypeDescription
mergeRequestobjectThe updated GitLab merge request

gitlab_merge_merge_request

Merge a merge request in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
mergeRequestIidnumberYesMerge request internal ID (IID)
mergeCommitMessagestringNoCustom merge commit message
squashCommitMessagestringNoCustom squash commit message
squashbooleanNoSquash commits before merging
shouldRemoveSourceBranchbooleanNoDelete source branch after merge
mergeWhenPipelineSucceedsbooleanNoMerge when pipeline succeeds

Output

ParameterTypeDescription
mergeRequestobjectThe merged GitLab merge request

gitlab_create_merge_request_note

Add a comment to a GitLab merge request

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
mergeRequestIidnumberYesMerge request internal ID (IID)
bodystringYesComment body (Markdown supported)

Output

ParameterTypeDescription
noteobjectThe created comment

gitlab_list_pipelines

List pipelines in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
refstringNoFilter by ref (branch or tag)
statusstringNoFilter by status (created, waiting_for_resource, preparing, pending, running, success, failed, canceled, skipped, manual, scheduled)
orderBystringNoOrder by field (id, status, ref, updated_at, user_id)
sortstringNoSort direction (asc, desc)
perPagenumberNoNumber of results per page (default 20, max 100)
pagenumberNoPage number for pagination

Output

ParameterTypeDescription
pipelinesarrayList of GitLab pipelines
totalnumberTotal number of pipelines

gitlab_get_pipeline

Get details of a specific GitLab pipeline

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
pipelineIdnumberYesPipeline ID

Output

ParameterTypeDescription
pipelineobjectThe GitLab pipeline details

gitlab_create_pipeline

Trigger a new pipeline in a GitLab project

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
refstringYesBranch or tag to run the pipeline on
variablesarrayNoArray of variables for the pipeline (each with key, value, and optional variable_type)

Output

ParameterTypeDescription
pipelineobjectThe created GitLab pipeline

gitlab_retry_pipeline

Retry a failed GitLab pipeline

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
pipelineIdnumberYesPipeline ID

Output

ParameterTypeDescription
pipelineobjectThe retried GitLab pipeline

gitlab_cancel_pipeline

Cancel a running GitLab pipeline

Input

ParameterTypeRequiredDescription
projectIdstringYesProject ID or URL-encoded path
pipelineIdnumberYesPipeline ID

Output

ParameterTypeDescription
pipelineobjectThe cancelled GitLab pipeline

Notes

  • Category: tools
  • Type: gitlab
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started