Skip to content

Add support for Copilot coding agent and content exclusion management APIs #4175

@AbhishekAg

Description

@AbhishekAg

The following Copilot organization management endpoints (API version 2026-03-10) are not yet supported by CopilotService:

  1. List repositories enabled for Copilot coding agent in an organization
    GET /orgs/{org}/copilot/coding_agent/repositories
    https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-coding-agent-management?apiVersion=2026-03-10#list-repositories-enabled-for-copilot-coding-agent-in-an-organization

  2. Get Copilot content exclusion rules for an organization
    GET /orgs/{org}/copilot/content_exclusions
    https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-content-exclusion-management?apiVersion=2026-03-10#get-copilot-content-exclusion-rules-for-an-organization

Proposed additions to CopilotService (in github/copilot.go)

// ListCodingAgentRepositories lists repositories with Copilot coding agent enabled in an organization.
func (s *CopilotService) ListCodingAgentRepositories(ctx context.Context, org string, opts *ListOptions) ([]*Repository, *Response, error)

// GetOrgContentExclusionRules gets the Copilot content exclusion rules for an organization.
func (s *CopilotService) GetOrgContentExclusionRules(ctx context.Context, org string) (*CopilotContentExclusionRules, *Response, error)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions