Turn on auto-merge for a pull request
One step with Harness. We can help you get access.
Get something done
Turn on auto-merge for a pull request
with Harness
Works with AI assistants
Use Harness: its Harness Pullreq API lets you turn on auto-merge for a pull request in a single step (PUT /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/automerge). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- Can a pull request merge itself automatically once it's ready?
- Can auto-merge delete the source branch after it merges my PR?
Say it to your AI assistant
- Enable auto-merge on PR #{pullreq_number} in {repo_identifier} using the {method} method.
- Set pull request {pullreq_number} in repo {repo_identifier} to auto-merge and delete its source branch afterwards.
For your developer
PUT /code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/automerge in Harness Pullreq API. Full spec on APIs.io.