WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a46fd1f

Browse files
committed
refactor: rename RevokeCredentialsRequest to revokeCredentialsRequest for consistency
1 parent 1d3d4be commit a46fd1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

github/credentials.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
// CredentialsService handles credentials related methods of the GitHub API.
1313
type CredentialsService service
1414

15-
// RevokeCredentialsRequest represents the request body for revoking credentials.
16-
type RevokeCredentialsRequest struct {
15+
// revokeCredentialsRequest represents the request body for revoking credentials.
16+
type revokeCredentialsRequest struct {
1717
// The list of credential strings (tokens) to revoke.
1818
Credentials []string `json:"credentials"`
1919
}
@@ -26,7 +26,7 @@ type RevokeCredentialsRequest struct {
2626
func (s *CredentialsService) Revoke(ctx context.Context, credentials []string) (*Response, error) {
2727
u := "credentials/revoke"
2828

29-
reqBody := &RevokeCredentialsRequest{Credentials: credentials}
29+
reqBody := &revokeCredentialsRequest{Credentials: credentials}
3030

3131
req, err := s.client.NewRequest("POST", u, reqBody)
3232
if err != nil {

github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ type Client struct {
197197
Apps *AppsService
198198
Authorizations *AuthorizationsService
199199
Billing *BillingService
200-
Credentials *CredentialsService
201200
Checks *ChecksService
202201
Classroom *ClassroomService
203202
CodeScanning *CodeScanningService
204203
CodesOfConduct *CodesOfConductService
205204
Codespaces *CodespacesService
206205
Copilot *CopilotService
206+
Credentials *CredentialsService
207207
Dependabot *DependabotService
208208
DependencyGraph *DependencyGraphService
209209
Emojis *EmojisService

0 commit comments

Comments
 (0)