Actions71
- Branch Actions
- File Actions
- Group Actions
- Issue Actions
- Merge Request Actions
- Pipeline Actions
- Project Actions
- Raw API Actions
- Release Actions
- Tag Actions
Branch → Rename
AI-generatedSummary
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).