#4524·go-github

Add Copilot custom agents enterprise endpoints

Author: Tens1desCreated Sep 7, 2026Updated Sep 7, 2026

The Copilot custom agents API exposes endpoints to list enterprise custom agents and manage their source organization/repository, but go-github does not model them yet.

Endpoints:

  • GET /enterprises/{enterprise}/copilot/custom-agents
  • GET /enterprises/{enterprise}/copilot/custom-agents/source
  • PUT /enterprises/{enterprise}/copilot/custom-agents/source
  • DELETE /enterprises/{enterprise}/copilot/custom-agents/source

Docs: https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-custom-agents

I plan to work on this.