feat: Add Copilot coding agent and content exclusion org endpoints#4176
feat: Add Copilot coding agent and content exclusion org endpoints#4176AbhishekAg wants to merge 2 commits intogoogle:masterfrom
Conversation
Implement support for two Copilot organization management endpoints
under the CopilotService.
- Add ListCopilotCodingAgentRepositories for
GET /orgs/{org}/copilot/coding-agent/permissions/repositories.
- Add GetCopilotOrganizationContentExclusionDetails for
GET /orgs/{org}/copilot/content_exclusion.
- Add tests covering both endpoints, JSON round-trip tests for the
new types, and regenerate accessors and iterators.
API docs:
- https://docs.github.com/rest/copilot/copilot-coding-agent-management#list-repositories-enabled-for-copilot-coding-agent-in-an-organization
- https://docs.github.com/rest/copilot/copilot-content-exclusion-management#get-copilot-content-exclusion-rules-for-an-organization
Fixes: google#4175
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4176 +/- ##
==========================================
- Coverage 93.69% 93.20% -0.49%
==========================================
Files 210 210
Lines 19706 24627 +4921
==========================================
+ Hits 18463 22953 +4490
- Misses 1047 1478 +431
Partials 196 196 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @AbhishekAg!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra - @munlicode
Signed-off-by: abhishek <abhishek@exaforce.com>
|
The uncovered block at github/copilot.go:L233-L236 flagged by Codecov is the pre-existing This PR's own additions are at 100% coverage (go test ./github/ -coverprofile shows no uncovered blocks in the new code). @gmlewis Please override the Codecov check. |
Implement support for two Copilot organization management endpoints under the CopilotService.
API docs:
Fixes: #4175