gitlab api pro icon

gitlab api pro

Extended GitLab node

Branch → Rename

AI-generated

Summary

Renames a GitLab branch to a new name using the GitLab API.

Inputs

  • Branch (required) — Existing branch name to rename.
  • New Branch (required) — New branch name.

Output shape

A list of items containing the renamed branch details from the GitLab API response.

The response follows the GitLab API schema for branch objects.

Examples

Example 1: Rename a feature branch 'old-feature' to 'new-feature' in the current project.

Set Branch to 'old-feature', New Branch to 'new-feature', and select the project using Project Locator (ID or Path).

Links

Discussion