Skip to content

feat: Add Copilot custom agents enterprise endpoints - #4525

Open
Tens1des wants to merge 2 commits into
google:masterfrom
Tens1des:feat/copilot-custom-agents
Open

feat: Add Copilot custom agents enterprise endpoints#4525
Tens1des wants to merge 2 commits into
google:masterfrom
Tens1des:feat/copilot-custom-agents

Conversation

@Tens1des

@Tens1des Tens1des commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add types and methods for enterprise Copilot custom agents APIs
  • Cover list/get/set/delete source plus generated accessors/iterators

Fixes #4524

Test plan

  • go test ./github/ -run CustomAgents
  • ./script/fmt.sh and ./script/generate.sh

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Sep 7, 2026
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.54%. Comparing base (3a439fa) to head (b327cc8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4525   +/-   ##
=======================================
  Coverage   98.53%   98.54%           
=======================================
  Files         195      196    +1     
  Lines       17848    17901   +53     
=======================================
+ Hits        17587    17640   +53     
  Misses        261      261           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Tens1des!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @Not-Dhananjay-Mishra

// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-custom-agents?apiVersion=2022-11-28#get-custom-agents-for-an-enterprise
//
//meta:operation GET /enterprises/{enterprise}/copilot/custom-agents
func (s *CopilotService) ListEnterpriseCustomAgents(ctx context.Context, enterprise string, opts *ListOptions) (*EnterpriseCustomAgents, *Response, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (s *CopilotService) ListEnterpriseCustomAgents(ctx context.Context, enterprise string, opts *ListOptions) (*EnterpriseCustomAgents, *Response, error) {
func (s *CopilotService) ListEnterpriseCustomAgents(ctx context.Context, enterprise string, opts *ListOptions) (*CopilotEnterpriseCustomAgents, *Response, error) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Copilot custom agents enterprise endpoints

3 participants