Get GitHub rate limit
Usage
get_gh_ratelimit(github_token = Sys.getenv("GITHUB_PAT"))
Arguments
- github_token
token passed to gh (default: Sys.getenv("GITHUB_PAT")
Examples
get_gh_ratelimit()
#> # A tibble: 9 × 5
#> id limit used remaining reset
#> <chr> <int> <int> <int> <int>
#> 1 core 5000 1084 3916 1665988481
#> 2 search 30 0 30 1665987028
#> 3 graphql 5000 7 4993 1665989798
#> 4 integration_manifest 5000 0 5000 1665990568
#> 5 source_import 100 0 100 1665987028
#> 6 code_scanning_upload 1000 0 1000 1665990568
#> 7 actions_runner_registration 10000 0 10000 1665990568
#> 8 scim 15000 0 15000 1665990568
#> 9 dependency_snapshots 100 0 100 1665987028