GitLab · Schema

GitLab Merge Request

A GitLab merge request proposing changes from a source branch to be merged into a target branch within a project.

CodePlatformSoftware DevelopmentSource Control

Properties

Name Type Description
id integer The globally unique identifier of the merge request.
iid integer The internal project-scoped ID of the merge request.
project_id integer The ID of the project the merge request belongs to.
title string The title of the merge request.
description stringnull The description of the merge request, supporting Markdown syntax.
state string The current state of the merge request.
draft boolean Whether the merge request is in draft state and not ready for review.
source_branch string The name of the source branch containing the changes.
target_branch string The name of the target branch to merge changes into.
source_project_id integer The ID of the project containing the source branch.
target_project_id integer The ID of the project containing the target branch.
author object
assignees array Users assigned to review and merge this merge request.
reviewers array Users requested to review this merge request.
merge_user object The user who merged the merge request.
labels array Labels applied to the merge request.
milestone object The milestone the merge request is associated with.
detailed_merge_status string The detailed merge readiness status of the merge request.
sha stringnull The HEAD commit SHA of the source branch.
merge_commit_sha stringnull The SHA of the merge commit, set after merging.
squash_commit_sha stringnull The SHA of the squash commit, set after squash merging.
squash boolean Whether the merge request is configured to squash commits on merge.
references object
web_url string The URL to view the merge request in a browser.
upvotes integer The number of upvotes the merge request has received.
downvotes integer The number of downvotes the merge request has received.
user_notes_count integer The number of user-authored comments on the merge request.
changes_count stringnull The number of files changed. May be a string for large diffs.
created_at string The date and time the merge request was created.
updated_at string The date and time the merge request was last updated.
merged_at stringnull The date and time the merge request was merged.
prepared_at stringnull The date and time the merge request was prepared for merging.
closed_at stringnull The date and time the merge request was closed without merging.
View JSON Schema on GitHub