Skip to content

Commit 722192c

Browse files
committed
Added type documentation for PersonalAccessTokenRequestEvent subtypes
1 parent cf895e5 commit 722192c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

github/event_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ type PersonalAccessTokenRequestEvent struct {
790790
Installation *Installation `json:"installation,omitempty"`
791791
}
792792

793+
// PersonalAccessTokenRequest contains the details of a PersonalAccessTokenRequestEvent.
793794
type PersonalAccessTokenRequest struct {
794795
// Unique identifier of the request for access via fine-grained personal
795796
// access token. Used as the pat_request_id parameter in the list and review
@@ -833,6 +834,8 @@ type PersonalAccessTokenRequest struct {
833834
TokenLastUsedAt *Timestamp `json:"token_last_used_at,omitempty"`
834835
}
835836

837+
// PersonalAccessTokenPermissions represents the original or newly requested
838+
// scope of permissions for a fine-grained personal access token within a PersonalAccessTokenRequest.
836839
type PersonalAccessTokenPermissions struct {
837840
Org *Organization `json:"organization,omitempty"`
838841
Repo *Repository `json:"repository,omitempty"`

0 commit comments

Comments
 (0)