{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Updates the Agent Merge configuration for a pull request, enabling Agent Merge\nor changing the allowed actions that Copilot is allowed to take on the pull\nrequest.\n\nIf Agent Merge is currently enabled for the pull request, only the user\nwho most recently enabled it may change its allowed actions.\n\nIf enrollment eligibility cannot be determined, the operation returns `503`.\n\nThis endpoint is only available to users with a Copilot subscription,\nexcluding Copilot Free users. You must have write access to the repository,\nthe pull request must not be from a fork or part of a stack, and the repository\nmust have the \"Allow automations\" setting enabled.\n\nOAuth app tokens and personal access tokens (classic) need the repo scope for private or internal repositories, or the public_repo scope for public repositories.\n","properties":{"path":{"type":"object","properties":{"owner":{"type":"string","description":"The account owner of the repository. The name is not case sensitive."},"repo":{"type":"string","description":"The name of the repository. The name is not case sensitive."},"pull_number":{"type":"integer","minimum":1,"examples":[42],"description":"The number that identifies the pull request."}},"required":["owner","repo","pull_number"],"additionalProperties":false},"body":{"type":"object","additionalProperties":false,"description":"The Agent Merge enrollment configuration","required":["allowed_actions"],"properties":{"allowed_actions":{"type":"array","minItems":1,"uniqueItems":true,"description":"The set of actions that Copilot may perform on the pull request.","items":{"type":"string","description":"An action that Agent Merge is explicitly allowed to perform.","enum":["fix_ci","resolve_merge_conflicts"],"examples":["fix_ci"]},"examples":[["fix_ci"]]}},"examples":[{"allowed_actions":["fix_ci"]}]}},"required":["path","body"],"additionalProperties":false},"name":"Update Agent Merge configuration for a pull request","id":"github.agent-merge.put-agent-merge-enrollment","example":{"path":{"owner":"octocat","repo":"hello-world","pull_number":42},"body":{"allowed_actions":["fix_ci"]}},"maxRequests":1,"summary":false}}