Disable Agent Merge for a pull request
Changed onDisables 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.
Request
- Base URLhttps://api.github.com
- URLhttps://api.github.com/agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge
- Authnone declared
Path parameters
The account owner of the repository. The name is not case sensitive.
The name of the repository. The name is not case sensitive.
The number that identifies the pull request.
Response
Agent Merge successfully disabled for the pull request
Changes
- info
endpoint added
- info