Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion github/enterprise_billing_cost_centers.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (s *EnterpriseService) GetCostCenter(ctx context.Context, enterprise, costC

// UpdateCostCenter updates the name of a cost center.
//
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#update-a-cost-center-name
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers?apiVersion=2022-11-28#update-a-cost-center
//
//meta:operation PATCH /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}
func (s *EnterpriseService) UpdateCostCenter(ctx context.Context, enterprise, costCenterID string, body CostCenterRequest) (*CostCenter, *Response, error) {
Expand Down
71 changes: 69 additions & 2 deletions openapi_operations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ operation_overrides:
documentation_url: https://docs.github.com/rest/pages/pages#request-a-github-pages-build
- name: GET /repos/{owner}/{repo}/pages/builds/{build_id}
documentation_url: https://docs.github.com/rest/pages/pages#get-github-pages-build
openapi_commit: 16bc535ad66fac59d585b1516d1d52f58f787962
openapi_commit: e50419c4bb8f2d1d34735044bb3b410863dc0a10
openapi_operations:
- name: GET /
documentation_url: https://docs.github.com/rest/meta/meta#github-api-root
Expand Down Expand Up @@ -883,6 +883,10 @@ openapi_operations:
openapi_files:
- descriptions/ghec/ghec.json
- descriptions/ghes-3.21/ghes-3.21.json
- name: GET /enterprises/{enterprise}/actions/runners/deprecations/{version}
documentation_url: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#get-runner-version-end-of-life-schedule-for-an-enterprise
openapi_files:
- descriptions/ghec/ghec.json
- name: GET /enterprises/{enterprise}/actions/runners/downloads
documentation_url: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#list-runner-applications-for-an-enterprise
openapi_files:
Expand Down Expand Up @@ -1507,7 +1511,7 @@ openapi_operations:
openapi_files:
- descriptions/ghec/ghec.json
- name: PATCH /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}
documentation_url: https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers#update-a-cost-center-name
documentation_url: https://docs.github.com/enterprise-cloud@latest/rest/billing/cost-centers#update-a-cost-center
openapi_files:
- descriptions/ghec/ghec.json
- name: DELETE /enterprises/{enterprise}/settings/billing/cost-centers/{cost_center_id}/resource
Expand Down Expand Up @@ -2449,6 +2453,10 @@ openapi_operations:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- descriptions/ghes-3.21/ghes-3.21.json
- name: GET /orgs/{org}/actions/runners/deprecations/{version}
documentation_url: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#get-runner-version-end-of-life-schedule-for-an-organization
openapi_files:
- descriptions/ghec/ghec.json
- name: GET /orgs/{org}/actions/runners/downloads
documentation_url: https://docs.github.com/rest/actions/self-hosted-runners#list-runner-applications-for-an-organization
openapi_files:
Expand Down Expand Up @@ -2738,6 +2746,16 @@ openapi_operations:
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: POST /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/jobs
documentation_url: https://docs.github.com/rest/orgs/artifact-metadata#create-a-cluster-deployment-records-job
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /orgs/{org}/artifacts/metadata/deployment-record/cluster/{cluster}/jobs/{job_id}
documentation_url: https://docs.github.com/rest/orgs/artifact-metadata#get-cluster-deployment-records-job-status
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: POST /orgs/{org}/artifacts/metadata/storage-record
documentation_url: https://docs.github.com/rest/orgs/artifact-metadata#create-artifact-metadata-storage-record
openapi_files:
Expand Down Expand Up @@ -3463,6 +3481,16 @@ openapi_operations:
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /orgs/{org}/interaction-limits/pulls/creation-cap
documentation_url: https://docs.github.com/rest/interactions/orgs#get-pull-request-creation-cap-for-an-org
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: PATCH /orgs/{org}/interaction-limits/pulls/creation-cap
documentation_url: https://docs.github.com/rest/interactions/orgs#update-pull-request-creation-cap-for-an-org
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /orgs/{org}/invitations
documentation_url: https://docs.github.com/rest/orgs/members#list-pending-organization-invitations
openapi_files:
Expand Down Expand Up @@ -4798,6 +4826,10 @@ openapi_operations:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- descriptions/ghes-3.21/ghes-3.21.json
- name: GET /repos/{owner}/{repo}/actions/runners/deprecations/{version}
documentation_url: https://docs.github.com/enterprise-cloud@latest/rest/actions/self-hosted-runners#get-runner-version-end-of-life-schedule-for-a-repository
openapi_files:
- descriptions/ghec/ghec.json
- name: GET /repos/{owner}/{repo}/actions/runners/downloads
documentation_url: https://docs.github.com/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository
openapi_files:
Expand Down Expand Up @@ -7183,6 +7215,16 @@ openapi_operations:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- descriptions/ghes-3.21/ghes-3.21.json
- name: PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge-async
documentation_url: https://docs.github.com/rest/pulls/pulls#merge-a-pull-request-asynchronously
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /repos/{owner}/{repo}/pulls/{pull_number}/merge-async/{uuid}
documentation_url: https://docs.github.com/rest/pulls/pulls#get-the-result-of-an-asynchronous-merge
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers
documentation_url: https://docs.github.com/rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request
openapi_files:
Expand Down Expand Up @@ -7518,6 +7560,31 @@ openapi_operations:
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /repos/{owner}/{repo}/stacks
documentation_url: https://docs.github.com/rest/pulls/stacks#list-pull-request-stacks
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: POST /repos/{owner}/{repo}/stacks
documentation_url: https://docs.github.com/rest/pulls/stacks#create-a-pull-request-stack
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /repos/{owner}/{repo}/stacks/{stack_number}
documentation_url: https://docs.github.com/rest/pulls/stacks#get-a-pull-request-stack
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: POST /repos/{owner}/{repo}/stacks/{stack_number}/add
documentation_url: https://docs.github.com/rest/pulls/stacks#add-pull-requests-to-a-pull-request-stack
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: POST /repos/{owner}/{repo}/stacks/{stack_number}/unstack
documentation_url: https://docs.github.com/rest/pulls/stacks#remove-pull-requests-from-a-pull-request-stack
openapi_files:
- descriptions/api.github.com/api.github.com.json
- descriptions/ghec/ghec.json
- name: GET /repos/{owner}/{repo}/stargazers
documentation_url: https://docs.github.com/rest/activity/starring#list-stargazers
openapi_files:
Expand Down
Loading