Skip to content

Commit 213ebd8

Browse files
authored
chore: Update openapi_operations.yaml (#3942)
1 parent f43d2cf commit 213ebd8

File tree

3 files changed

+45
-57
lines changed

3 files changed

+45
-57
lines changed

github/orgs_organization_properties.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type OrganizationCustomPropertyValues struct {
1818

1919
// GetOrganizationCustomPropertyValues returns all custom property names and their values for an organization.
2020
//
21-
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties-for-orgs#get-all-custom-property-values-for-an-organization
21+
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs#get-all-custom-property-values-for-an-organization
2222
//
2323
//meta:operation GET /organizations/{org}/org-properties/values
2424
func (s *OrganizationsService) GetOrganizationCustomPropertyValues(ctx context.Context, org string) ([]*CustomPropertyValue, *Response, error) {
@@ -41,7 +41,7 @@ func (s *OrganizationsService) GetOrganizationCustomPropertyValues(ctx context.C
4141
// CreateOrUpdateOrganizationCustomPropertyValues creates or updates custom property values for an organization.
4242
// To remove a custom property value from an organization, set the property value to null.
4343
//
44-
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties-for-orgs#create-or-update-custom-property-values-for-an-organization
44+
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-properties-for-orgs#create-or-update-custom-property-values-for-an-organization
4545
//
4646
//meta:operation PATCH /organizations/{org}/org-properties/values
4747
func (s *OrganizationsService) CreateOrUpdateOrganizationCustomPropertyValues(ctx context.Context, org string, values OrganizationCustomPropertyValues) (*Response, error) {

github/teams_discussions.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type DiscussionListOptions struct {
4949
// ListDiscussionsByID lists all discussions on team's page given Organization and Team ID.
5050
// Authenticated user must grant read:discussion scope.
5151
//
52-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#list-discussions
52+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions
5353
//
5454
//meta:operation GET /orgs/{org}/teams/{team_slug}/discussions
5555
func (s *TeamsService) ListDiscussionsByID(ctx context.Context, orgID, teamID int64, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) {
@@ -76,7 +76,7 @@ func (s *TeamsService) ListDiscussionsByID(ctx context.Context, orgID, teamID in
7676
// ListDiscussionsBySlug lists all discussions on team's page given Organization name and Team's slug.
7777
// Authenticated user must grant read:discussion scope.
7878
//
79-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#list-discussions
79+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions
8080
//
8181
//meta:operation GET /orgs/{org}/teams/{team_slug}/discussions
8282
func (s *TeamsService) ListDiscussionsBySlug(ctx context.Context, org, slug string, opts *DiscussionListOptions) ([]*TeamDiscussion, *Response, error) {
@@ -103,7 +103,7 @@ func (s *TeamsService) ListDiscussionsBySlug(ctx context.Context, org, slug stri
103103
// GetDiscussionByID gets a specific discussion on a team's page given Organization and Team ID.
104104
// Authenticated user must grant read:discussion scope.
105105
//
106-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#get-a-discussion
106+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion
107107
//
108108
//meta:operation GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
109109
func (s *TeamsService) GetDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*TeamDiscussion, *Response, error) {
@@ -125,7 +125,7 @@ func (s *TeamsService) GetDiscussionByID(ctx context.Context, orgID, teamID int6
125125
// GetDiscussionBySlug gets a specific discussion on a team's page given Organization name and Team's slug.
126126
// Authenticated user must grant read:discussion scope.
127127
//
128-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#get-a-discussion
128+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion
129129
//
130130
//meta:operation GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
131131
func (s *TeamsService) GetDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*TeamDiscussion, *Response, error) {
@@ -147,7 +147,7 @@ func (s *TeamsService) GetDiscussionBySlug(ctx context.Context, org, slug string
147147
// CreateDiscussionByID creates a new discussion post on a team's page given Organization and Team ID.
148148
// Authenticated user must grant write:discussion scope.
149149
//
150-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#create-a-discussion
150+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion
151151
//
152152
//meta:operation POST /orgs/{org}/teams/{team_slug}/discussions
153153
func (s *TeamsService) CreateDiscussionByID(ctx context.Context, orgID, teamID int64, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) {
@@ -169,7 +169,7 @@ func (s *TeamsService) CreateDiscussionByID(ctx context.Context, orgID, teamID i
169169
// CreateDiscussionBySlug creates a new discussion post on a team's page given Organization name and Team's slug.
170170
// Authenticated user must grant write:discussion scope.
171171
//
172-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#create-a-discussion
172+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion
173173
//
174174
//meta:operation POST /orgs/{org}/teams/{team_slug}/discussions
175175
func (s *TeamsService) CreateDiscussionBySlug(ctx context.Context, org, slug string, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) {
@@ -192,7 +192,7 @@ func (s *TeamsService) CreateDiscussionBySlug(ctx context.Context, org, slug str
192192
// Authenticated user must grant write:discussion scope.
193193
// User is allowed to change Title and Body of a discussion only.
194194
//
195-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#update-a-discussion
195+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion
196196
//
197197
//meta:operation PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
198198
func (s *TeamsService) EditDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) {
@@ -215,7 +215,7 @@ func (s *TeamsService) EditDiscussionByID(ctx context.Context, orgID, teamID int
215215
// Authenticated user must grant write:discussion scope.
216216
// User is allowed to change Title and Body of a discussion only.
217217
//
218-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#update-a-discussion
218+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion
219219
//
220220
//meta:operation PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
221221
func (s *TeamsService) EditDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int, discussion TeamDiscussion) (*TeamDiscussion, *Response, error) {
@@ -237,7 +237,7 @@ func (s *TeamsService) EditDiscussionBySlug(ctx context.Context, org, slug strin
237237
// DeleteDiscussionByID deletes a discussion from team's page given Organization and Team ID.
238238
// Authenticated user must grant write:discussion scope.
239239
//
240-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#delete-a-discussion
240+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion
241241
//
242242
//meta:operation DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
243243
func (s *TeamsService) DeleteDiscussionByID(ctx context.Context, orgID, teamID int64, discussionNumber int) (*Response, error) {
@@ -253,7 +253,7 @@ func (s *TeamsService) DeleteDiscussionByID(ctx context.Context, orgID, teamID i
253253
// DeleteDiscussionBySlug deletes a discussion from team's page given Organization name and Team's slug.
254254
// Authenticated user must grant write:discussion scope.
255255
//
256-
// GitHub API docs: https://docs.github.com/rest/teams/discussions#delete-a-discussion
256+
// GitHub API docs: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion
257257
//
258258
//meta:operation DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
259259
func (s *TeamsService) DeleteDiscussionBySlug(ctx context.Context, org, slug string, discussionNumber int) (*Response, error) {

openapi_operations.yaml

Lines changed: 33 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ operation_overrides:
2727
documentation_url: https://docs.github.com/rest/pages/pages#request-a-github-pages-build
2828
- name: GET /repos/{owner}/{repo}/pages/builds/{build_id}
2929
documentation_url: https://docs.github.com/rest/pages/pages#get-github-pages-build
30-
openapi_commit: 76df6d2c9e8fb2188bb8b342d472e9673f9fdc08
30+
openapi_commit: 04fd6c592fc546217404b07e0b0e581fb00a963a
3131
openapi_operations:
3232
- name: GET /
3333
documentation_url: https://docs.github.com/rest/meta/meta#github-api-root
@@ -1754,14 +1754,12 @@ openapi_operations:
17541754
- descriptions/ghec/ghec.json
17551755
- descriptions/ghes-3.19/ghes-3.19.json
17561756
- name: GET /organizations/{org}/org-properties/values
1757-
documentation_url: https://docs.github.com/rest/orgs/custom-properties-for-orgs#get-all-custom-property-values-for-an-organization
1757+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-properties-for-orgs#get-all-custom-property-values-for-an-organization
17581758
openapi_files:
1759-
- descriptions/api.github.com/api.github.com.json
17601759
- descriptions/ghec/ghec.json
17611760
- name: PATCH /organizations/{org}/org-properties/values
1762-
documentation_url: https://docs.github.com/rest/orgs/custom-properties-for-orgs#create-or-update-custom-property-values-for-an-organization
1761+
documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-properties-for-orgs#create-or-update-custom-property-values-for-an-organization
17631762
openapi_files:
1764-
- descriptions/api.github.com/api.github.com.json
17651763
- descriptions/ghec/ghec.json
17661764
- name: GET /organizations/{org}/settings/billing/budgets
17671765
documentation_url: https://docs.github.com/rest/billing/budgets#get-all-budgets-for-an-organization
@@ -3366,6 +3364,11 @@ openapi_operations:
33663364
openapi_files:
33673365
- descriptions/api.github.com/api.github.com.json
33683366
- descriptions/ghec/ghec.json
3367+
- name: POST /orgs/{org}/projectsV2/{project_number}/views
3368+
documentation_url: https://docs.github.com/rest/projects/views#create-a-view-for-an-organization-owned-project
3369+
openapi_files:
3370+
- descriptions/api.github.com/api.github.com.json
3371+
- descriptions/ghec/ghec.json
33693372
- name: GET /orgs/{org}/projectsV2/{project_number}/views/{view_number}/items
33703373
documentation_url: https://docs.github.com/rest/projects/items#list-items-for-an-organization-project-view
33713374
openapi_files:
@@ -3654,35 +3657,25 @@ openapi_operations:
36543657
- descriptions/ghec/ghec.json
36553658
- descriptions/ghes-3.19/ghes-3.19.json
36563659
- name: GET /orgs/{org}/teams/{team_slug}/discussions
3657-
documentation_url: https://docs.github.com/rest/teams/discussions#list-discussions
3660+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions
36583661
openapi_files:
3659-
- descriptions/api.github.com/api.github.com.json
3660-
- descriptions/ghec/ghec.json
3661-
- descriptions/ghes-3.19/ghes-3.19.json
3662+
- descriptions/ghes-3.13/ghes-3.13.json
36623663
- name: POST /orgs/{org}/teams/{team_slug}/discussions
3663-
documentation_url: https://docs.github.com/rest/teams/discussions#create-a-discussion
3664+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion
36643665
openapi_files:
3665-
- descriptions/api.github.com/api.github.com.json
3666-
- descriptions/ghec/ghec.json
3667-
- descriptions/ghes-3.19/ghes-3.19.json
3666+
- descriptions/ghes-3.13/ghes-3.13.json
36683667
- name: DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
3669-
documentation_url: https://docs.github.com/rest/teams/discussions#delete-a-discussion
3668+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion
36703669
openapi_files:
3671-
- descriptions/api.github.com/api.github.com.json
3672-
- descriptions/ghec/ghec.json
3673-
- descriptions/ghes-3.19/ghes-3.19.json
3670+
- descriptions/ghes-3.13/ghes-3.13.json
36743671
- name: GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
3675-
documentation_url: https://docs.github.com/rest/teams/discussions#get-a-discussion
3672+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion
36763673
openapi_files:
3677-
- descriptions/api.github.com/api.github.com.json
3678-
- descriptions/ghec/ghec.json
3679-
- descriptions/ghes-3.19/ghes-3.19.json
3674+
- descriptions/ghes-3.13/ghes-3.13.json
36803675
- name: PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
3681-
documentation_url: https://docs.github.com/rest/teams/discussions#update-a-discussion
3676+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion
36823677
openapi_files:
3683-
- descriptions/api.github.com/api.github.com.json
3684-
- descriptions/ghec/ghec.json
3685-
- descriptions/ghes-3.19/ghes-3.19.json
3678+
- descriptions/ghes-3.13/ghes-3.13.json
36863679
- name: GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
36873680
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments
36883681
openapi_files:
@@ -7076,35 +7069,25 @@ openapi_operations:
70767069
- descriptions/ghec/ghec.json
70777070
- descriptions/ghes-3.19/ghes-3.19.json
70787071
- name: GET /teams/{team_id}/discussions
7079-
documentation_url: https://docs.github.com/rest/teams/discussions#list-discussions-legacy
7072+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions-legacy
70807073
openapi_files:
7081-
- descriptions/api.github.com/api.github.com.json
7082-
- descriptions/ghec/ghec.json
7083-
- descriptions/ghes-3.19/ghes-3.19.json
7074+
- descriptions/ghes-3.13/ghes-3.13.json
70847075
- name: POST /teams/{team_id}/discussions
7085-
documentation_url: https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy
7076+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion-legacy
70867077
openapi_files:
7087-
- descriptions/api.github.com/api.github.com.json
7088-
- descriptions/ghec/ghec.json
7089-
- descriptions/ghes-3.19/ghes-3.19.json
7078+
- descriptions/ghes-3.13/ghes-3.13.json
70907079
- name: DELETE /teams/{team_id}/discussions/{discussion_number}
7091-
documentation_url: https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy
7080+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion-legacy
70927081
openapi_files:
7093-
- descriptions/api.github.com/api.github.com.json
7094-
- descriptions/ghec/ghec.json
7095-
- descriptions/ghes-3.19/ghes-3.19.json
7082+
- descriptions/ghes-3.13/ghes-3.13.json
70967083
- name: GET /teams/{team_id}/discussions/{discussion_number}
7097-
documentation_url: https://docs.github.com/rest/teams/discussions#get-a-discussion-legacy
7084+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion-legacy
70987085
openapi_files:
7099-
- descriptions/api.github.com/api.github.com.json
7100-
- descriptions/ghec/ghec.json
7101-
- descriptions/ghes-3.19/ghes-3.19.json
7086+
- descriptions/ghes-3.13/ghes-3.13.json
71027087
- name: PATCH /teams/{team_id}/discussions/{discussion_number}
7103-
documentation_url: https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy
7088+
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion-legacy
71047089
openapi_files:
7105-
- descriptions/api.github.com/api.github.com.json
7106-
- descriptions/ghec/ghec.json
7107-
- descriptions/ghes-3.19/ghes-3.19.json
7090+
- descriptions/ghes-3.13/ghes-3.13.json
71087091
- name: GET /teams/{team_id}/discussions/{discussion_number}/comments
71097092
documentation_url: https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments-legacy
71107093
openapi_files:
@@ -7782,6 +7765,11 @@ openapi_operations:
77827765
- descriptions/api.github.com/api.github.com.json
77837766
- descriptions/ghec/ghec.json
77847767
- descriptions/ghes-3.19/ghes-3.19.json
7768+
- name: POST /users/{user_id}/projectsV2/{project_number}/views
7769+
documentation_url: https://docs.github.com/rest/projects/views#create-a-view-for-a-user-owned-project
7770+
openapi_files:
7771+
- descriptions/api.github.com/api.github.com.json
7772+
- descriptions/ghec/ghec.json
77857773
- name: GET /users/{username}
77867774
documentation_url: https://docs.github.com/rest/users/users#get-a-user
77877775
openapi_files:

0 commit comments

Comments
 (0)