gitlab api pro icon

gitlab api pro

Extended GitLab node

Merge Request → Close

AI-generated

Summary

Close a specific merge request in a GitLab project by setting its state to 'closed'.

Inputs

  • authentication — Choose to use saved credentials or input a custom GitLab server URL and access token.
  • server — Base URL of the GitLab instance; used if 'Custom' authentication is selected.
  • accessToken — Personal access token for GitLab API; needed if 'Custom' authentication is selected.
  • projectLocator — Select how to identify the project: by numeric ID or by path (namespace and project name). Defaults to 'id'.
  • projectId — Numeric ID of the project; used if 'Project Locator' is set to 'ID'.
  • projectOwner — Namespace or owner of the project; used if 'Project Locator' is set to 'Path'.
  • projectName — Project slug or name; used if 'Project Locator' is set to 'Path'.
  • mergeRequestIid (required) — Internal ID (IID) of the merge request to close; must be a positive number.

Output shape

a single updated merge request record as JSON

Returns the updated merge request data reflecting the closed state; errors if the merge request ID is invalid or required parameters are missing.

Links

Discussion