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
add a new AutoPkg command to output info about GitHub Token, API limits, etc.
github-token-info is what I would propose. Usage: autopkg github-token-info
What I would want as output is first what path is currently being used to find the github token, which would either be what is defined in the currently used preferences, or if not defined then the default path.
Then it would also validate if that configured file is found or not, perhaps also report it's size and absolute path.
Then autopkg should reach out to GitHub and get it's current API limits (regardless of if an actual token is found or not, if not found, then it would report the unauthenticated API limits. ) by querying this URL: https://api.github.com/rate_limit and providing the output. (just the raw JSON at first is good enough, but eventually maybe something more friendly?)
Enhancement Request:
add a new AutoPkg command to output info about GitHub Token, API limits, etc.
github-token-info
is what I would propose. Usage:autopkg github-token-info
What I would want as output is first what path is currently being used to find the github token, which would either be what is defined in the currently used preferences, or if not defined then the default path.
Then it would also validate if that configured file is found or not, perhaps also report it's size and absolute path.
Then autopkg should reach out to GitHub and get it's current API limits (regardless of if an actual token is found or not, if not found, then it would report the unauthenticated API limits. ) by querying this URL: https://api.github.com/rate_limit and providing the output. (just the raw JSON at first is good enough, but eventually maybe something more friendly?)
See this example recipe: https://github.com/jgstew/jgstew-recipes/blob/main/Test-Recipes/ExampleGitHubTokenAPI.test.recipe.yaml
The text was updated successfully, but these errors were encountered: