Skip to content

Commit 1e66201

Browse files
authored
Update metadata (#3012)
1 parent 062b611 commit 1e66201

12 files changed

+1176
-1087
lines changed

github/admin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (m Enterprise) String() string {
8282

8383
// UpdateUserLDAPMapping updates the mapping between a GitHub user and an LDAP user.
8484
//
85-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user
85+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-user
8686
//
8787
//meta:operation PATCH /admin/ldap/users/{username}/mapping
8888
func (s *AdminService) UpdateUserLDAPMapping(ctx context.Context, user string, mapping *UserLDAPMapping) (*UserLDAPMapping, *Response, error) {
@@ -103,7 +103,7 @@ func (s *AdminService) UpdateUserLDAPMapping(ctx context.Context, user string, m
103103

104104
// UpdateTeamLDAPMapping updates the mapping between a GitHub team and an LDAP group.
105105
//
106-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team
106+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/ldap#update-ldap-mapping-for-a-team
107107
//
108108
//meta:operation PATCH /admin/ldap/teams/{team_id}/mapping
109109
func (s *AdminService) UpdateTeamLDAPMapping(ctx context.Context, team int64, mapping *TeamLDAPMapping) (*TeamLDAPMapping, *Response, error) {

github/admin_orgs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type createOrgRequest struct {
2222
// Note that only a subset of the org fields are used and org must
2323
// not be nil.
2424
//
25-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/orgs#create-an-organization
25+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/orgs#create-an-organization
2626
//
2727
//meta:operation POST /admin/organizations
2828
func (s *AdminService) CreateOrg(ctx context.Context, org *Organization, admin string) (*Organization, *Response, error) {
@@ -61,7 +61,7 @@ type RenameOrgResponse struct {
6161

6262
// RenameOrg renames an organization in GitHub Enterprise.
6363
//
64-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/orgs#update-an-organization-name
64+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/orgs#update-an-organization-name
6565
//
6666
//meta:operation PATCH /admin/organizations/{org}
6767
func (s *AdminService) RenameOrg(ctx context.Context, org *Organization, newName string) (*RenameOrgResponse, *Response, error) {
@@ -70,7 +70,7 @@ func (s *AdminService) RenameOrg(ctx context.Context, org *Organization, newName
7070

7171
// RenameOrgByName renames an organization in GitHub Enterprise using its current name.
7272
//
73-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/orgs#update-an-organization-name
73+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/orgs#update-an-organization-name
7474
//
7575
//meta:operation PATCH /admin/organizations/{org}
7676
func (s *AdminService) RenameOrgByName(ctx context.Context, org, newName string) (*RenameOrgResponse, *Response, error) {

github/admin_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (s RepoStats) String() string {
152152
// Please note that this is only available to site administrators,
153153
// otherwise it will error with a 404 not found (instead of 401 or 403).
154154
//
155-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/admin-stats#get-all-statistics
155+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/admin-stats#get-all-statistics
156156
//
157157
//meta:operation GET /enterprise/stats/all
158158
func (s *AdminService) GetAdminStats(ctx context.Context) (*AdminStats, *Response, error) {

github/admin_users.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type createUserRequest struct {
1919

2020
// CreateUser creates a new user in GitHub Enterprise.
2121
//
22-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/users#create-a-user
22+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#create-a-user
2323
//
2424
//meta:operation POST /admin/users
2525
func (s *AdminService) CreateUser(ctx context.Context, login, email string) (*User, *Response, error) {
@@ -46,7 +46,7 @@ func (s *AdminService) CreateUser(ctx context.Context, login, email string) (*Us
4646

4747
// DeleteUser deletes a user in GitHub Enterprise.
4848
//
49-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/users#delete-a-user
49+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#delete-a-user
5050
//
5151
//meta:operation DELETE /admin/users/{username}
5252
func (s *AdminService) DeleteUser(ctx context.Context, username string) (*Response, error) {
@@ -99,7 +99,7 @@ type UserAuthorization struct {
9999

100100
// CreateUserImpersonation creates an impersonation OAuth token.
101101
//
102-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/users#create-an-impersonation-oauth-token
102+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#create-an-impersonation-oauth-token
103103
//
104104
//meta:operation POST /admin/users/{username}/authorizations
105105
func (s *AdminService) CreateUserImpersonation(ctx context.Context, username string, opts *ImpersonateUserOptions) (*UserAuthorization, *Response, error) {
@@ -121,7 +121,7 @@ func (s *AdminService) CreateUserImpersonation(ctx context.Context, username str
121121

122122
// DeleteUserImpersonation deletes an impersonation OAuth token.
123123
//
124-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/users#delete-an-impersonation-oauth-token
124+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#delete-an-impersonation-oauth-token
125125
//
126126
//meta:operation DELETE /admin/users/{username}/authorizations
127127
func (s *AdminService) DeleteUserImpersonation(ctx context.Context, username string) (*Response, error) {

github/authorizations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (s *AuthorizationsService) DeleteGrant(ctx context.Context, clientID, acces
257257
// you can e.g. create or delete a user's public SSH key. NOTE: creating a
258258
// new token automatically revokes an existing one.
259259
//
260-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/users#create-an-impersonation-oauth-token
260+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#create-an-impersonation-oauth-token
261261
//
262262
//meta:operation POST /admin/users/{username}/authorizations
263263
func (s *AuthorizationsService) CreateImpersonation(ctx context.Context, username string, authReq *AuthorizationRequest) (*Authorization, *Response, error) {
@@ -279,7 +279,7 @@ func (s *AuthorizationsService) CreateImpersonation(ctx context.Context, usernam
279279
//
280280
// NOTE: there can be only one at a time.
281281
//
282-
// GitHub API docs: https://docs.github.com/enterprise-server@3.10/rest/enterprise-admin/users#delete-an-impersonation-oauth-token
282+
// GitHub API docs: https://docs.github.com/enterprise-server@3.11/rest/enterprise-admin/users#delete-an-impersonation-oauth-token
283283
//
284284
//meta:operation DELETE /admin/users/{username}/authorizations
285285
func (s *AuthorizationsService) DeleteImpersonation(ctx context.Context, username string) (*Response, error) {

github/orgs_properties.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type CustomPropertyValue struct {
3939

4040
// GetAllCustomProperties gets all custom properties that are defined for the specified organization.
4141
//
42-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#get-all-custom-properties-for-an-organization
42+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization
4343
//
4444
//meta:operation GET /orgs/{org}/properties/schema
4545
func (s *OrganizationsService) GetAllCustomProperties(ctx context.Context, org string) ([]*CustomProperty, *Response, error) {
@@ -61,7 +61,7 @@ func (s *OrganizationsService) GetAllCustomProperties(ctx context.Context, org s
6161

6262
// CreateOrUpdateCustomProperties creates new or updates existing custom properties that are defined for the specified organization.
6363
//
64-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#create-or-update-custom-properties-for-an-organization
64+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization
6565
//
6666
//meta:operation PATCH /orgs/{org}/properties/schema
6767
func (s *OrganizationsService) CreateOrUpdateCustomProperties(ctx context.Context, org string, properties []*CustomProperty) ([]*CustomProperty, *Response, error) {
@@ -89,7 +89,7 @@ func (s *OrganizationsService) CreateOrUpdateCustomProperties(ctx context.Contex
8989

9090
// GetCustomProperty gets a custom property that is defined for the specified organization.
9191
//
92-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#get-a-custom-property-for-an-organization
92+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization
9393
//
9494
//meta:operation GET /orgs/{org}/properties/schema/{custom_property_name}
9595
func (s *OrganizationsService) GetCustomProperty(ctx context.Context, org, name string) (*CustomProperty, *Response, error) {
@@ -111,7 +111,7 @@ func (s *OrganizationsService) GetCustomProperty(ctx context.Context, org, name
111111

112112
// CreateOrUpdateCustomProperty creates a new or updates an existing custom property that is defined for the specified organization.
113113
//
114-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#create-or-update-a-custom-property-for-an-organization
114+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization
115115
//
116116
//meta:operation PUT /orgs/{org}/properties/schema/{custom_property_name}
117117
func (s *OrganizationsService) CreateOrUpdateCustomProperty(ctx context.Context, org, customPropertyName string, property *CustomProperty) (*CustomProperty, *Response, error) {
@@ -133,7 +133,7 @@ func (s *OrganizationsService) CreateOrUpdateCustomProperty(ctx context.Context,
133133

134134
// RemoveCustomProperty removes a custom property that is defined for the specified organization.
135135
//
136-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#remove-a-custom-property-for-an-organization
136+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization
137137
//
138138
//meta:operation DELETE /orgs/{org}/properties/schema/{custom_property_name}
139139
func (s *OrganizationsService) RemoveCustomProperty(ctx context.Context, org, customPropertyName string) (*Response, error) {
@@ -149,7 +149,7 @@ func (s *OrganizationsService) RemoveCustomProperty(ctx context.Context, org, cu
149149

150150
// ListCustomPropertyValues lists all custom property values for repositories in the specified organization.
151151
//
152-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#list-custom-property-values-for-organization-repositories
152+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories
153153
//
154154
//meta:operation GET /orgs/{org}/properties/values
155155
func (s *OrganizationsService) ListCustomPropertyValues(ctx context.Context, org string, opts *ListOptions) ([]*RepoCustomPropertyValue, *Response, error) {
@@ -175,7 +175,7 @@ func (s *OrganizationsService) ListCustomPropertyValues(ctx context.Context, org
175175

176176
// CreateOrUpdateRepoCustomPropertyValues creates new or updates existing custom property values across multiple repositories for the specified organization.
177177
//
178-
// GitHub API docs: https://docs.github.com/rest/orgs/properties#create-or-update-custom-property-values-for-organization-repositories
178+
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
179179
//
180180
//meta:operation PATCH /orgs/{org}/properties/values
181181
func (s *OrganizationsService) CreateOrUpdateRepoCustomPropertyValues(ctx context.Context, org string, repoNames []string, properties []*CustomProperty) (*Response, error) {

github/repos_hooks.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type createHookRequest struct {
7979
// Note that only a subset of the hook fields are used and hook must
8080
// not be nil.
8181
//
82-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#create-a-repository-webhook
82+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#create-a-repository-webhook
8383
//
8484
//meta:operation POST /repos/{owner}/{repo}/hooks
8585
func (s *RepositoriesService) CreateHook(ctx context.Context, owner, repo string, hook *Hook) (*Hook, *Response, error) {
@@ -108,7 +108,7 @@ func (s *RepositoriesService) CreateHook(ctx context.Context, owner, repo string
108108

109109
// ListHooks lists all Hooks for the specified repository.
110110
//
111-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#list-repository-webhooks
111+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#list-repository-webhooks
112112
//
113113
//meta:operation GET /repos/{owner}/{repo}/hooks
114114
func (s *RepositoriesService) ListHooks(ctx context.Context, owner, repo string, opts *ListOptions) ([]*Hook, *Response, error) {
@@ -134,7 +134,7 @@ func (s *RepositoriesService) ListHooks(ctx context.Context, owner, repo string,
134134

135135
// GetHook returns a single specified Hook.
136136
//
137-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#get-a-repository-webhook
137+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#get-a-repository-webhook
138138
//
139139
//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}
140140
func (s *RepositoriesService) GetHook(ctx context.Context, owner, repo string, id int64) (*Hook, *Response, error) {
@@ -154,7 +154,7 @@ func (s *RepositoriesService) GetHook(ctx context.Context, owner, repo string, i
154154

155155
// EditHook updates a specified Hook.
156156
//
157-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#update-a-repository-webhook
157+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#update-a-repository-webhook
158158
//
159159
//meta:operation PATCH /repos/{owner}/{repo}/hooks/{hook_id}
160160
func (s *RepositoriesService) EditHook(ctx context.Context, owner, repo string, id int64, hook *Hook) (*Hook, *Response, error) {
@@ -174,7 +174,7 @@ func (s *RepositoriesService) EditHook(ctx context.Context, owner, repo string,
174174

175175
// DeleteHook deletes a specified Hook.
176176
//
177-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#delete-a-repository-webhook
177+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#delete-a-repository-webhook
178178
//
179179
//meta:operation DELETE /repos/{owner}/{repo}/hooks/{hook_id}
180180
func (s *RepositoriesService) DeleteHook(ctx context.Context, owner, repo string, id int64) (*Response, error) {
@@ -188,7 +188,7 @@ func (s *RepositoriesService) DeleteHook(ctx context.Context, owner, repo string
188188

189189
// PingHook triggers a 'ping' event to be sent to the Hook.
190190
//
191-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#ping-a-repository-webhook
191+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#ping-a-repository-webhook
192192
//
193193
//meta:operation POST /repos/{owner}/{repo}/hooks/{hook_id}/pings
194194
func (s *RepositoriesService) PingHook(ctx context.Context, owner, repo string, id int64) (*Response, error) {
@@ -202,7 +202,7 @@ func (s *RepositoriesService) PingHook(ctx context.Context, owner, repo string,
202202

203203
// TestHook triggers a test Hook by github.
204204
//
205-
// GitHub API docs: https://docs.github.com/rest/webhooks/repos#test-the-push-repository-webhook
205+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#test-the-push-repository-webhook
206206
//
207207
//meta:operation POST /repos/{owner}/{repo}/hooks/{hook_id}/tests
208208
func (s *RepositoriesService) TestHook(ctx context.Context, owner, repo string, id int64) (*Response, error) {

github/repos_hooks_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// GetHookConfiguration returns the configuration for the specified repository webhook.
1414
//
15-
// GitHub API docs: https://docs.github.com/rest/webhooks/repo-config#get-a-webhook-configuration-for-a-repository
15+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#get-a-webhook-configuration-for-a-repository
1616
//
1717
//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}/config
1818
func (s *RepositoriesService) GetHookConfiguration(ctx context.Context, owner, repo string, id int64) (*HookConfig, *Response, error) {
@@ -33,7 +33,7 @@ func (s *RepositoriesService) GetHookConfiguration(ctx context.Context, owner, r
3333

3434
// EditHookConfiguration updates the configuration for the specified repository webhook.
3535
//
36-
// GitHub API docs: https://docs.github.com/rest/webhooks/repo-config#update-a-webhook-configuration-for-a-repository
36+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#update-a-webhook-configuration-for-a-repository
3737
//
3838
//meta:operation PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config
3939
func (s *RepositoriesService) EditHookConfiguration(ctx context.Context, owner, repo string, id int64, config *HookConfig) (*HookConfig, *Response, error) {

github/repos_hooks_deliveries.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (r HookResponse) String() string {
6363

6464
// ListHookDeliveries lists webhook deliveries for a webhook configured in a repository.
6565
//
66-
// GitHub API docs: https://docs.github.com/rest/webhooks/repo-deliveries#list-deliveries-for-a-repository-webhook
66+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#list-deliveries-for-a-repository-webhook
6767
//
6868
//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries
6969
func (s *RepositoriesService) ListHookDeliveries(ctx context.Context, owner, repo string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) {
@@ -89,7 +89,7 @@ func (s *RepositoriesService) ListHookDeliveries(ctx context.Context, owner, rep
8989

9090
// GetHookDelivery returns a delivery for a webhook configured in a repository.
9191
//
92-
// GitHub API docs: https://docs.github.com/rest/webhooks/repo-deliveries#get-a-delivery-for-a-repository-webhook
92+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#get-a-delivery-for-a-repository-webhook
9393
//
9494
//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}
9595
func (s *RepositoriesService) GetHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) {
@@ -110,7 +110,7 @@ func (s *RepositoriesService) GetHookDelivery(ctx context.Context, owner, repo s
110110

111111
// RedeliverHookDelivery redelivers a delivery for a webhook configured in a repository.
112112
//
113-
// GitHub API docs: https://docs.github.com/rest/webhooks/repo-deliveries#redeliver-a-delivery-for-a-repository-webhook
113+
// GitHub API docs: https://docs.github.com/rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook
114114
//
115115
//meta:operation POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts
116116
func (s *RepositoriesService) RedeliverHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) {

0 commit comments

Comments
 (0)