Skip to content

feat: Add support for Copilot coding agent permissions - #4649

Merged
gmlewis merged 1 commit into
google:masterfrom
ninadsutrave:feat/copilot-coding-agent-permissions
Oct 22, 2026
Merged

gmlewis merged 1 commit into
google:masterfrom
ninadsutrave:feat/copilot-coding-agent-permissions

Conversation

@ninadsutrave

@ninadsutrave ninadsutrave commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #4650.

Adds the organization endpoints for managing which repositories can use the Copilot coding agent:

  • CopilotService.GetOrganizationCodingAgentPermissions - GET /orgs/{org}/copilot/coding-agent/permissions
  • CopilotService.SetOrganizationCodingAgentPermissions - PUT /orgs/{org}/copilot/coding-agent/permissions
  • CopilotService.SetOrganizationCodingAgentRepositories - PUT /orgs/{org}/copilot/coding-agent/permissions/repositories
  • CopilotService.EnableOrganizationCodingAgentRepository - PUT /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}
  • CopilotService.DisableOrganizationCodingAgentRepository - DELETE /orgs/{org}/copilot/coding-agent/permissions/repositories/{repository_id}

The list endpoint was already there as ListOrganizationCodingAgentRepositories.

Used an AI assistant while writing this; I've reviewed and tested all of it.

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

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.63%. Comparing base (28d2616) to head (4b6a0f1).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4649   +/-   ##
=======================================
  Coverage   98.62%   98.63%           
=======================================
  Files         201      201           
  Lines       18811    18842   +31     
=======================================
+ Hits        18553    18584   +31     
  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, @ninadsutrave!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @Not-Dhananjay-Mishra

@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 22, 2026
@gmlewis

gmlewis commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Thank you, @Not-Dhananjay-Mishra!
Merging.

@gmlewis
gmlewis merged commit b1be2ff into google:master Oct 22, 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 support for Copilot coding agent permissions API

3 participants