Skip to content

Commit 16495de

Browse files
authored
Update OpenAPI (#3419)
1 parent 3428a81 commit 16495de

File tree

2 files changed

+127
-14
lines changed

2 files changed

+127
-14
lines changed

github/copilot.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func (s *CopilotService) ListCopilotSeats(ctx context.Context, org string, opts
307307
//
308308
// To paginate through all seats, populate 'Page' with the number of the last page.
309309
//
310-
// GitHub API docs: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise
310+
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise
311311
//
312312
//meta:operation GET /enterprises/{enterprise}/copilot/billing/seats
313313
func (s *CopilotService) ListCopilotEnterpriseSeats(ctx context.Context, enterprise string, opts *ListOptions) (*ListCopilotSeatsResponse, *Response, error) {
@@ -467,7 +467,7 @@ func (s *CopilotService) GetSeatDetails(ctx context.Context, org, user string) (
467467

468468
// GetEnterpriseMetrics gets Copilot usage metrics for an enterprise.
469469
//
470-
// GitHub API docs: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise
470+
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise
471471
//
472472
//meta:operation GET /enterprises/{enterprise}/copilot/metrics
473473
func (s *CopilotService) GetEnterpriseMetrics(ctx context.Context, enterprise string, opts *CopilotMetricsListOptions) ([]*CopilotMetrics, *Response, error) {
@@ -493,7 +493,7 @@ func (s *CopilotService) GetEnterpriseMetrics(ctx context.Context, enterprise st
493493

494494
// GetEnterpriseTeamMetrics gets Copilot usage metrics for an enterprise team.
495495
//
496-
// GitHub API docs: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team
496+
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team
497497
//
498498
//meta:operation GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics
499499
func (s *CopilotService) GetEnterpriseTeamMetrics(ctx context.Context, enterprise, team string, opts *CopilotMetricsListOptions) ([]*CopilotMetrics, *Response, error) {

openapi_operations.yaml

+124-11
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ operation_overrides:
4747
documentation_url: https://docs.github.com/rest/pages/pages#request-a-github-pages-build
4848
- name: GET /repos/{owner}/{repo}/pages/builds/{build_id}
4949
documentation_url: https://docs.github.com/rest/pages/pages#get-github-pages-build
50-
openapi_commit: 4ab8513682637010cd3bb5d8ee3227cc5ce739d1
50+
openapi_commit: 8031023b31a852778532c5fa688b8bb6bcbab9d6
5151
openapi_operations:
5252
- name: GET /
5353
documentation_url: https://docs.github.com/rest/meta/meta#github-api-root
@@ -729,6 +729,51 @@ openapi_operations:
729729
openapi_files:
730730
- descriptions/ghec/ghec.json
731731
- descriptions/ghes-3.15/ghes-3.15.json
732+
- name: GET /enterprises/{enterprise}/code-security/configurations
733+
documentation_url: https://docs.github.com/rest/code-security/configurations#get-code-security-configurations-for-an-enterprise
734+
openapi_files:
735+
- descriptions/api.github.com/api.github.com.json
736+
- descriptions/ghec/ghec.json
737+
- name: POST /enterprises/{enterprise}/code-security/configurations
738+
documentation_url: https://docs.github.com/rest/code-security/configurations#create-a-code-security-configuration-for-an-enterprise
739+
openapi_files:
740+
- descriptions/api.github.com/api.github.com.json
741+
- descriptions/ghec/ghec.json
742+
- name: GET /enterprises/{enterprise}/code-security/configurations/defaults
743+
documentation_url: https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations-for-an-enterprise
744+
openapi_files:
745+
- descriptions/api.github.com/api.github.com.json
746+
- descriptions/ghec/ghec.json
747+
- name: DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}
748+
documentation_url: https://docs.github.com/rest/code-security/configurations#delete-a-code-security-configuration-for-an-enterprise
749+
openapi_files:
750+
- descriptions/api.github.com/api.github.com.json
751+
- descriptions/ghec/ghec.json
752+
- name: GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}
753+
documentation_url: https://docs.github.com/rest/code-security/configurations#retrieve-a-code-security-configuration-of-an-enterprise
754+
openapi_files:
755+
- descriptions/api.github.com/api.github.com.json
756+
- descriptions/ghec/ghec.json
757+
- name: PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}
758+
documentation_url: https://docs.github.com/rest/code-security/configurations#update-a-custom-code-security-configuration-for-an-enterprise
759+
openapi_files:
760+
- descriptions/api.github.com/api.github.com.json
761+
- descriptions/ghec/ghec.json
762+
- name: POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach
763+
documentation_url: https://docs.github.com/rest/code-security/configurations#attach-an-enterprise-configuration-to-repositories
764+
openapi_files:
765+
- descriptions/api.github.com/api.github.com.json
766+
- descriptions/ghec/ghec.json
767+
- name: PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults
768+
documentation_url: https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-enterprise
769+
openapi_files:
770+
- descriptions/api.github.com/api.github.com.json
771+
- descriptions/ghec/ghec.json
772+
- name: GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories
773+
documentation_url: https://docs.github.com/rest/code-security/configurations#get-repositories-associated-with-an-enterprise-code-security-configuration
774+
openapi_files:
775+
- descriptions/api.github.com/api.github.com.json
776+
- descriptions/ghec/ghec.json
732777
- name: GET /enterprises/{enterprise}/code_security_and_analysis
733778
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/code-security-and-analysis#get-code-security-and-analysis-features-for-an-enterprise
734779
openapi_files:
@@ -744,19 +789,16 @@ openapi_operations:
744789
openapi_files:
745790
- descriptions/ghec/ghec.json
746791
- name: GET /enterprises/{enterprise}/copilot/billing/seats
747-
documentation_url: https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise
792+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-enterprise
748793
openapi_files:
749-
- descriptions/api.github.com/api.github.com.json
750794
- descriptions/ghec/ghec.json
751795
- name: GET /enterprises/{enterprise}/copilot/metrics
752-
documentation_url: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise
796+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise
753797
openapi_files:
754-
- descriptions/api.github.com/api.github.com.json
755798
- descriptions/ghec/ghec.json
756799
- name: GET /enterprises/{enterprise}/copilot/usage
757-
documentation_url: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members
800+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members
758801
openapi_files:
759-
- descriptions/api.github.com/api.github.com.json
760802
- descriptions/ghec/ghec.json
761803
- name: GET /enterprises/{enterprise}/dependabot/alerts
762804
documentation_url: https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-enterprise
@@ -788,6 +830,22 @@ openapi_operations:
788830
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/custom-properties#create-or-update-a-custom-property-for-an-enterprise
789831
openapi_files:
790832
- descriptions/ghec/ghec.json
833+
- name: POST /enterprises/{enterprise}/rulesets
834+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#create-an-enterprise-repository-ruleset
835+
openapi_files:
836+
- descriptions/ghec/ghec.json
837+
- name: DELETE /enterprises/{enterprise}/rulesets/{ruleset_id}
838+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#delete-an-enterprise-repository-ruleset
839+
openapi_files:
840+
- descriptions/ghec/ghec.json
841+
- name: GET /enterprises/{enterprise}/rulesets/{ruleset_id}
842+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#get-an-enterprise-repository-ruleset
843+
openapi_files:
844+
- descriptions/ghec/ghec.json
845+
- name: PUT /enterprises/{enterprise}/rulesets/{ruleset_id}
846+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/rules#update-an-enterprise-repository-ruleset
847+
openapi_files:
848+
- descriptions/ghec/ghec.json
791849
- name: GET /enterprises/{enterprise}/secret-scanning/alerts
792850
documentation_url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-enterprise
793851
openapi_files:
@@ -828,14 +886,12 @@ openapi_operations:
828886
openapi_files:
829887
- descriptions/ghec/ghec.json
830888
- name: GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics
831-
documentation_url: https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team
889+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team
832890
openapi_files:
833-
- descriptions/api.github.com/api.github.com.json
834891
- descriptions/ghec/ghec.json
835892
- name: GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage
836-
documentation_url: https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-an-enterprise-team
893+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-an-enterprise-team
837894
openapi_files:
838-
- descriptions/api.github.com/api.github.com.json
839895
- descriptions/ghec/ghec.json
840896
- name: POST /enterprises/{enterprise}/{security_product}/{enablement}
841897
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/code-security-and-analysis#enable-or-disable-a-security-feature
@@ -1615,6 +1671,10 @@ openapi_operations:
16151671
openapi_files:
16161672
- descriptions/api.github.com/api.github.com.json
16171673
- descriptions/ghec/ghec.json
1674+
- name: GET /orgs/{org}/bypass-requests/push-rules
1675+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/bypass-requests#list-push-rule-bypass-requests-within-an-organization
1676+
openapi_files:
1677+
- descriptions/ghec/ghec.json
16181678
- name: GET /orgs/{org}/code-scanning/alerts
16191679
documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization
16201680
openapi_files:
@@ -2398,6 +2458,36 @@ openapi_operations:
23982458
documentation_url: https://docs.github.com/[email protected]/rest/enterprise-admin/org-pre-receive-hooks#update-pre-receive-hook-enforcement-for-an-organization
23992459
openapi_files:
24002460
- descriptions/ghes-3.15/ghes-3.15.json
2461+
- name: GET /orgs/{org}/private-registries
2462+
documentation_url: https://docs.github.com/rest/private-registries/organization-configurations#list-private-registries-for-an-organization
2463+
openapi_files:
2464+
- descriptions/api.github.com/api.github.com.json
2465+
- descriptions/ghec/ghec.json
2466+
- name: POST /orgs/{org}/private-registries
2467+
documentation_url: https://docs.github.com/rest/private-registries/organization-configurations#create-a-private-registry-for-an-organization
2468+
openapi_files:
2469+
- descriptions/api.github.com/api.github.com.json
2470+
- descriptions/ghec/ghec.json
2471+
- name: GET /orgs/{org}/private-registries/public-key
2472+
documentation_url: https://docs.github.com/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization
2473+
openapi_files:
2474+
- descriptions/api.github.com/api.github.com.json
2475+
- descriptions/ghec/ghec.json
2476+
- name: DELETE /orgs/{org}/private-registries/{secret_name}
2477+
documentation_url: https://docs.github.com/rest/private-registries/organization-configurations#delete-a-private-registry-for-an-organization
2478+
openapi_files:
2479+
- descriptions/api.github.com/api.github.com.json
2480+
- descriptions/ghec/ghec.json
2481+
- name: GET /orgs/{org}/private-registries/{secret_name}
2482+
documentation_url: https://docs.github.com/rest/private-registries/organization-configurations#get-a-private-registry-for-an-organization
2483+
openapi_files:
2484+
- descriptions/api.github.com/api.github.com.json
2485+
- descriptions/ghec/ghec.json
2486+
- name: PATCH /orgs/{org}/private-registries/{secret_name}
2487+
documentation_url: https://docs.github.com/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization
2488+
openapi_files:
2489+
- descriptions/api.github.com/api.github.com.json
2490+
- descriptions/ghec/ghec.json
24012491
- name: GET /orgs/{org}/projects
24022492
documentation_url: https://docs.github.com/rest/projects/projects#list-organization-projects
24032493
openapi_files:
@@ -3699,6 +3789,14 @@ openapi_operations:
36993789
- descriptions/api.github.com/api.github.com.json
37003790
- descriptions/ghec/ghec.json
37013791
- descriptions/ghes-3.15/ghes-3.15.json
3792+
- name: GET /repos/{owner}/{repo}/bypass-requests/push-rules
3793+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/repos/bypass-requests#list-repository-push-rule-bypass-requests
3794+
openapi_files:
3795+
- descriptions/ghec/ghec.json
3796+
- name: GET /repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}
3797+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/repos/bypass-requests#get-a-repository-push-bypass-request
3798+
openapi_files:
3799+
- descriptions/ghec/ghec.json
37023800
- name: POST /repos/{owner}/{repo}/check-runs
37033801
documentation_url: https://docs.github.com/rest/checks/runs#create-a-check-run
37043802
openapi_files:
@@ -3777,6 +3875,21 @@ openapi_operations:
37773875
- descriptions/api.github.com/api.github.com.json
37783876
- descriptions/ghec/ghec.json
37793877
- descriptions/ghes-3.15/ghes-3.15.json
3878+
- name: GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix
3879+
documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert
3880+
openapi_files:
3881+
- descriptions/api.github.com/api.github.com.json
3882+
- descriptions/ghec/ghec.json
3883+
- name: POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix
3884+
documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert
3885+
openapi_files:
3886+
- descriptions/api.github.com/api.github.com.json
3887+
- descriptions/ghec/ghec.json
3888+
- name: POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits
3889+
documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert
3890+
openapi_files:
3891+
- descriptions/api.github.com/api.github.com.json
3892+
- descriptions/ghec/ghec.json
37803893
- name: GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances
37813894
documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert
37823895
openapi_files:

0 commit comments

Comments
 (0)