Skip to content

Commit

Permalink
Add TokenID and TokenName to PersonalAccessToken struct (#3404)
Browse files Browse the repository at this point in the history
Fixes: #3403.
  • Loading branch information
R4vio authored Dec 25, 2024
1 parent 06727b5 commit 3424b98
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
16 changes: 16 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions github/orgs_personal_access_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ type PersonalAccessToken struct {
// Date and time when the associated fine-grained personal access token expires.
TokenExpiresAt *Timestamp `json:"token_expires_at"`

// TokenID
TokenID *int64 `json:"token_id"`

// TokenName
TokenName *string `json:"token_name"`

// Date and time when the associated fine-grained personal access token was last used for authentication.
TokenLastUsedAt *Timestamp `json:"token_last_used_at"`
}
Expand Down

0 comments on commit 3424b98

Please sign in to comment.