Skip to content

Commit 3424b98

Browse files
authored
Add TokenID and TokenName to PersonalAccessToken struct (#3404)
Fixes: #3403.
1 parent 06727b5 commit 3424b98

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

github/github-accessors.go

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/orgs_personal_access_tokens.go

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ type PersonalAccessToken struct {
4444
// Date and time when the associated fine-grained personal access token expires.
4545
TokenExpiresAt *Timestamp `json:"token_expires_at"`
4646

47+
// TokenID
48+
TokenID *int64 `json:"token_id"`
49+
50+
// TokenName
51+
TokenName *string `json:"token_name"`
52+
4753
// Date and time when the associated fine-grained personal access token was last used for authentication.
4854
TokenLastUsedAt *Timestamp `json:"token_last_used_at"`
4955
}

0 commit comments

Comments
 (0)