GitLab · Arazzo Workflow
GitLab Clean Up a Merged Branch
Version 1.0.0
Verify a branch has been merged, then unprotect and delete it.
Provider
Workflows
cleanup-merged-branch
Delete a branch only after confirming it has been merged.
Reads the branch to confirm its merged flag, branches on the result, and for merged branches unprotects then deletes them.
1
getBranch
getApiV4ProjectsIdRepositoryBranchesBranch
Read the branch and capture whether it has been merged.
2
unprotectBranch
putApiV4ProjectsIdRepositoryBranchesBranchUnprotect
Unprotect the branch so it can be deleted.
3
deleteBranch
deleteApiV4ProjectsIdRepositoryBranchesBranch
Delete the now-unprotected, merged branch.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/gitlab-cleanup-merged-branch-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.