feat: Add ListFineGrainedPersonalAccessTokenRequests for org#4022
feat: Add ListFineGrainedPersonalAccessTokenRequests for org#4022AbhishekAg wants to merge 2 commits intogoogle:masterfrom
ListFineGrainedPersonalAccessTokenRequests for org#4022Conversation
…sting Signed-off-by: abhishek <abhishek@exaforce.com>
ListFineGrainedPersonalAccessTokenRequests for org PAT request listing
ListFineGrainedPersonalAccessTokenRequests for org PAT request listingListFineGrainedPersonalAccessTokenRequests for org
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4022 +/- ##
==========================================
+ Coverage 94.04% 94.07% +0.02%
==========================================
Files 207 207
Lines 19206 19262 +56
==========================================
+ Hits 18063 18121 +58
+ Misses 940 939 -1
+ Partials 203 202 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| } | ||
|
|
||
| // FineGrainedPersonalAccessTokenRequests represents the details of a request to access organization resources via a fine-grained personal access token. | ||
| type FineGrainedPersonalAccessTokenRequests struct { |
There was a problem hiding this comment.
Why Requests and not Request?
There was a problem hiding this comment.
API is personal-access-token-requests hence I used requests instead of request
| // FineGrainedPersonalAccessTokenRequests represents the details of a request to access organization resources via a fine-grained personal access token. | ||
| type FineGrainedPersonalAccessTokenRequests struct { | ||
| // Unique identifier of the request for access via fine-grained personal access token. | ||
| ID *int64 `json:"id"` |
There was a problem hiding this comment.
Why not ID int64? Is there a reason you used * for every field in the struct?
There was a problem hiding this comment.
There was a problem hiding this comment.
I can certainly update my codepiece to not to use pointer in ID and TokenID. The change in existing API "PersonalAccessToken" may break the consumer of this.
Signed-off-by: abhishek <abhishek@exaforce.com>
|
@gmlewis Can you please re-run the pipeline? linter error is due to 503 |
Implement support for listing requests to access organization resources via fine-grained personal access tokens (GET /orgs/{org}/personal-access-token-requests).
(id, reason, owner, repository selection, permissions, timestamps, token info)
ListFineGrainedPATOptions (sort, direction, owner, repository, permission, last_used_before/after, pagination)
API docs: https://docs.github.com/en/rest/orgs/personal-access-tokens#list-requests-to-access-organization-resources-with-fine-grained-personal-access-tokens
Fixes: #4021