Skip to content

feat: Add Copilot custom agents enterprise endpoints - #4525

Merged
gmlewis merged 4 commits into
google:masterfrom
Tens1des:feat/copilot-custom-agents
Oct 28, 2026
Merged

gmlewis merged 4 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.64%. Comparing base (6eccc42) to head (b33da0f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4525   +/-   ##
=======================================
  Coverage   98.63%   98.64%           
=======================================
  Files         201      202    +1     
  Lines       18951    19004   +53     
=======================================
+ Hits        18693    18746   +53     
  Misses        258      258           

☔ 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

Comment thread github/copilot_custom_agents.go Outdated
// 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) {

Tens1des added a commit to Tens1des/go-github that referenced this pull request Oct 27, 2026
Resolves conflicts in the generated accessor files by regenerating them
on top of current master. Also addresses the review on google#4525: renames
EnterpriseCustomAgents to CopilotEnterpriseCustomAgents.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@JamBalaya56562

Copy link
Copy Markdown
Contributor

@Tens1des Thanks, could you pass the CLA workflow which failed?

Resolves conflicts in the generated accessor files by regenerating them
on top of current master. Also addresses the review on google#4525: renames
EnterpriseCustomAgents to CopilotEnterpriseCustomAgents.
@Tens1des
Tens1des force-pushed the feat/copilot-custom-agents branch from c3aeffe to cb24ccc Compare October 27, 2026 22:30
Addresses the review on google#4676 by @Not-Dhananjay-Mishra, which asked for
example.com instead of github.com in test fixtures.
@JamBalaya56562

Copy link
Copy Markdown
Contributor

@Not-Dhananjay-Mishra
I think it's good for now.
Could you review this instead of #4676?

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra left a comment

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.

LGTM

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Oct 28, 2026
@gmlewis
gmlewis merged commit 7b235bc into google:master Oct 28, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Copilot custom agents enterprise endpoints

5 participants