Actions71
- Branch Actions
- File Actions
- Group Actions
- Issue Actions
- Merge Request Actions
- Pipeline Actions
- Project Actions
- Raw API Actions
- Release Actions
- Tag Actions
Merge Request → Labels
AI-generatedSummary
Add or remove labels on a specific merge request in a GitLab project.
Inputs
- authentication — Choose whether to use saved credentials or custom authentication with a personal access token.
- GitLab Server — Base URL of the GitLab instance, required if using custom authentication.
- Access Token — Personal access token with API permissions, required if using custom authentication.
- Project Locator — Select how to identify the project, either by its numeric ID or by path (project owner and project name).
- Project ID — The numeric ID of the project to operate on; used if "Project Locator" is set to "ID".
- Project Owner — Namespace or owner of the project; required if "Project Locator" is set to "Path".
- Project Name — Project slug or name; required if "Project Locator" is set to "Path".
- Merge Request IID (required) — The internal ID (IID) of the merge request to modify (must be positive).
- Labels (required) — Comma-separated list of label names to add or remove from the merge request.
- Action — Either to 'add' the listed labels to the merge request or 'remove' them (default: 'add').
Output shape
a single record describing the updated merge request
Returns the updated merge request object as JSON after adding or removing labels. No pagination is applicable.
Examples
Example 1: Add labels to a merge request
Set Merge Request IID to 5, Labels to 'bug,urgent', Action to 'add'. The node updates merge request #5 by adding these labels.
Example 2: Remove a label from a merge request
Set Merge Request IID to 12, Labels to 'wontfix', Action to 'remove'. The node removes the 'wontfix' label from merge request #12.