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
{{ message }}
Repository navigation
Commit 2198cd5
Browse filesBrowse the repository at this point in the historyBrowse files
|`err <message>`|`print_error` + `exit 1` in one call |
30
+
|`require_env_var <VAR>`| Exit with message if variable unset/empty |
31
+
|`require_command <cmd>`| Exit if binary not in PATH |
32
+
|`configure_gh_auth [scope_hint]`| Bridge GITHUB_TOKEN→GH_TOKEN or verify gh auth session |
33
+
|`validate_github_token [bearer]`| Verify GITHUB_TOKEN via /user endpoint |
34
+
|`validate_slug <value> <label>`| Reject values with non-alphanumeric/hyphen/underscore chars |
35
+
|`gh_api <path> [--api-version V] [curl args...]`| Bearer-auth REST helper with 5-retry rate-limit handling; optional `--api-version` overrides the default `2022-11-28` header; returns literal `__404__` or `__422__` for those HTTP statuses — callers must check for these sentinels |
36
+
|`gh_api_paginate <path> [filter] [version]`| Paginated REST helper, follows Link headers, streams items; returns silently with empty output on 404/422 |
@@ -101,7 +109,7 @@ For enterprise-level org iteration (GraphQL), use cursor-based pagination — se
101
109
Rate limiting delays are calibrated per operation type:
102
110
-**Repo-level operations** (permission grants, archival): `sleep 5` between each repository.
103
111
-**Code search** (`github-dockerfile-discovery`): configurable via `SEARCH_SLEEP` (default 2 s) and `CONTENT_SLEEP` (default 1 s).
104
-
-**gh_api helper** (lib): auto-retries up to 5 times on HTTP 403/429, sleeping 60 s before each retry. Returns the literal string `__404__` or `__422__` (exit 0) for those HTTP statuses instead of failing — every caller must check for these sentinels before passing the result to `jq`. `gh_api_paginate` returns silently with empty output on 404/422.
112
+
-**gh_api helper** (lib): auto-retries up to 5 times on HTTP 403/429, sleeping 60 s before each retry. Pass `--api-version VERSION` immediately after the URL to override the default `2022-11-28` header. Returns the literal string `__404__` or `__422__` (exit 0) for those HTTP statuses instead of failing — every caller must check for these sentinels before passing the result to `jq`. `gh_api_paginate` returns silently with empty output on 404/422.
|`err <message>`|`print_error` + `exit 1` in one call |
143
144
|`require_env_var <VAR>`| Exit with message if variable unset/empty |
144
145
|`require_command <cmd>`| Exit if binary not in PATH |
145
146
|`configure_gh_auth [scope_hint]`| Bridge GITHUB_TOKEN→GH_TOKEN or verify gh auth session |
146
147
|`validate_github_token [bearer]`| Verify GITHUB_TOKEN via /user endpoint |
147
148
|`validate_slug <value> <label>`| Reject values with non-alphanumeric/hyphen/underscore chars |
148
-
|`gh_api <path> [curl args...]`| Bearer-auth REST helper with 5-retry rate-limit handling; returns literal `__404__` or `__422__` for those HTTP statuses — callers must check for these sentinels |
149
+
|`gh_api <path> [--api-version V] [curl args...]`| Bearer-auth REST helper with 5-retry rate-limit handling; optional `--api-version` overrides the default `2022-11-28` header; returns literal `__404__` or `__422__` for those HTTP statuses — callers must check for these sentinels |
149
150
|`gh_api_paginate <path> [filter] [version]`| Paginated REST helper, follows Link headers, streams items; returns silently with empty output on 404/422 |
0 commit comments