gitlab api pro icon

gitlab api pro

Extended GitLab node

Merge Request → Get Many

AI-generated

Summary

Retrieve multiple merge requests from a specified GitLab project, optionally returning all results or limiting to a specified maximum number.

Inputs

  • authentication — Select whether to use saved credentials or custom fields for this node; defaults to using credentials.
  • server — Base URL of your GitLab instance, e.g., https://gitlab.com; used only if authentication is set to Custom.
  • accessToken — Personal access token with API permissions; used only if authentication is set to Custom.
  • projectLocator — Method to identify the project: by numeric ID or by path (namespace and project name). Defaults to ID.
  • projectId — Numeric project ID; used if Project Locator is set to ID.
  • projectOwner — Namespace or owner of the project; required when Project Locator is set to Path.
  • projectName — Project slug or name; required when Project Locator is set to Path.
  • returnAll — Whether to return all merge requests or limit the number of results. Defaults to false.
  • limit — Maximum number of merge requests to return when Return All is false; default is 50.

Output shape

a list of merge request objects as returned by the GitLab API

If Return All is true, all merge requests are fetched using paginated API requests; otherwise, up to the specified limit are retrieved.

Examples

Example 1: List merge requests for a project using project ID, limiting to 20

Set Project Locator to ID, provide Project ID, set Return All to false, and Limit to 20.

Example 2: List all merge requests for a project using project path

Set Project Locator to Path, provide Project Owner and Project Name, and set Return All to true.

Links

Discussion