runners: Octokit JS (OCT-1–11), Python (PY-1–15), Octokit.rb (RB-1–8) - #3
Open
tamnd wants to merge 1 commit into
Open
runners: Octokit JS (OCT-1–11), Python (PY-1–15), Octokit.rb (RB-1–8)#3tamnd wants to merge 1 commit into
tamnd wants to merge 1 commit into
Conversation
runners/js/octokit_test.mjs: - @octokit/rest 21.1.0 — users, repos, paginate, issues, rate-limit, ETag/304 - @octokit/graphql — viewer, repository queries - @octokit/webhooks — HMAC signature verification - @octokit/auth-app — GitHub App installation token (skipped if no app creds) - GITHUB_API_URL / GITHUB_GRAPHQL_URL env var recognition baseUrl: "https://HOST/api/v3" (no trailing slash) graphql baseUrl: "https://HOST/api" (appends /graphql internally) runners/python/pygithub_test.py: - PyGitHub 2.5.0 — base_url="https://HOST/api/v3" - All repo/issue/label/PR/rate-limit operations - ghapi — GhApi(gh_host=HOST) - gidgethub — base_url requires trailing slash - GitPython — Repo.clone_from() via HTTPS with token in URL - github3.py — GitHubEnterprise(url="https://HOST") runners/ruby/octokit_rb_test.rb: - octokit.rb 9.2.0 — api_endpoint "https://HOST/api/v3/" (trailing slash) - user, repo, issues, create/close issue, rate_limit, pull_requests - create_hook + delete (cleanup) - auto_paginate: true round-trip
tamnd
force-pushed
the
feat/runners-scripted
branch
from
June 10, 2026 04:56
132f8a0 to
1943462
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three scripted-language runners covering 34 gates across the JS, Python, and Ruby ecosystems.
Octokit JS (
runners/js/octokit_test.mjs)ES module, Node.js 22. Pinned:
@octokit/rest 21.1.0,@octokit/graphql,@octokit/auth-app,@octokit/webhooks.Key quirks handled:
baseUrl: "https://HOST/api/v3"(no trailing slash — @octokit/rest)baseUrl: "https://HOST/api"for graphql (it appends/graphql)@octokit/restthrows on 304, catch checkse.status === 304GITHUB_API_URL/GITHUB_GRAPHQL_URLenv vars for@actions/githubcompat@octokit/auth-app+createAppAuthPython (
runners/python/pygithub_test.py)Python 3.13. Pinned via
requirements.txt.Key quirks handled:
base_url="https://HOST/api/v3"(no trailing slash)base_urlrequires trailing slash (https://HOST/api/v3/)GitHubEnterprise(url="https://HOST")(host root, no /api/v3)https://x-token:TOKEN@HOST/...GhApi(token=TOKEN, gh_host=HOST)Octokit.rb (
runners/ruby/octokit_rb_test.rb)Ruby 3.4, bundler. Pinned:
octokit 9.2.0.Key quirks handled:
api_endpoint: "https://HOST/api/v3/"— trailing slash required(Octokit.rb uses
URI.join, omitting the slash mangles the URL)auto_paginate: truecreates a second client to avoid polluting the fixtureRunning locally