agent-merge

Disable Agent Merge for a pull request

Changed on

Disables Agent Merge for a pull request.

You must have write access to the repository. Disabling does not require enrollment eligibility: your Copilot subscription, coding-agent and Automations policies, the Agent Merge execution flag, pull request state, stack membership, and repository archive state do not prevent cleanup. Authentication, token repository selection, and "Agent tasks" write permission remain required.

OAuth app tokens and personal access tokens (classic) need the repo scope for private or internal repositories, or the public_repo scope for public repositories.

delete/agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge

Request

  • Base URL
    https://api.github.com
  • URL
    https://api.github.com/agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge
  • Auth
    none declared

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository. The name is not case sensitive.

pull_numberinteger required
Example:42

The number that identifies the pull request.

Response

Agent Merge successfully disabled for the pull request

Changes