You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TokenID filters results by the given fine-grained personal access token IDs.
88
+
TokenID []int64`url:"-"`
89
+
86
90
ListOptions
87
91
}
88
92
@@ -115,6 +119,75 @@ func (s *OrganizationsService) ListFineGrainedPersonalAccessTokens(ctx context.C
115
119
returnpats, resp, nil
116
120
}
117
121
122
+
// FineGrainedPersonalAccessTokenRequest represents the details of a request to access organization resources via a fine-grained personal access token.
123
+
typeFineGrainedPersonalAccessTokenRequeststruct {
124
+
// Unique identifier of the request for access via fine-grained personal access token.
125
+
IDint64`json:"id"`
126
+
127
+
// Reason is the reason for the request.
128
+
Reasonstring`json:"reason"`
129
+
130
+
// Owner is the GitHub user associated with the token.
131
+
OwnerUser`json:"owner"`
132
+
133
+
// RepositorySelection is the type of repository selection requested.
// ListFineGrainedPersonalAccessTokenRequests lists requests to access organization resources via fine-grained personal access tokens.
164
+
// Only GitHub Apps can call this API, using the `Personal access tokens` organization permissions (read).
165
+
//
166
+
// GitHub API docs: https://docs.github.com/rest/orgs/personal-access-tokens#list-requests-to-access-organization-resources-with-fine-grained-personal-access-tokens
167
+
//
168
+
//meta:operation GET /orgs/{org}/personal-access-token-requests
0 commit comments