{"uid":"cap_6KO6qtwEpXG1KOaGprbb8","slug":"forest-infra-github-ref-commit-state-f0bf036a","name":"Forest Infra – GitHub Ref Commit State","description":"Resolve a public GitHub ref to commit metadata without fetching a diff. Verification is reported as published by GitHub and is not independently re-signed by Forest. Base mainnet USDC","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/repo/commit-state?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ref":{"type":"string","maxLength":256,"minLength":1,"description":"Repository branch whose current state should be checked."},"repository":{"type":"string","pattern":"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$","maxLength":200,"description":"Public owner/name repository to inspect."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_E2NX3Q40J4Ma8tPC07Pv2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves a public GitHub branch ref to its current commit metadata (SHA, author, timestamp, verification status) without fetching a diff.","exampleAgentPrompt":"What is the current commit SHA and author for the main branch of torvalds/linux on GitHub?","exampleUseCases":[{"title":"Verify branch commit before deployment","prompt":"Before we deploy, can you check what commit the main branch of myorg/backend-api is currently pointing to and who authored it?"},{"title":"Monitor open-source repo for updates","prompt":"Has the main branch of facebook/react been updated since yesterday? What's the latest commit SHA and when was it pushed?"},{"title":"Audit a dependency repo's current state","prompt":"I need to audit our dependency — can you resolve the latest commit on the stable branch of curl/curl and tell me the commit hash and verification status?"}],"resultDescription":"Returns commit metadata for the specified GitHub branch ref, including the resolved commit SHA, author identity, commit timestamp, and GitHub-reported verification status. No diff or file content is included.","failureModes":["Repository not found or is private — returns an error indicating inaccessible repository","Invalid ref name (branch does not exist) — returns a resolution failure","GitHub API rate limiting or downtime — may return a timeout or upstream error","Malformed repository string (not matching owner/name pattern) — rejected at input validation","Ref is ambiguous (e.g. tag and branch share the same name) — may return unexpected commit"],"whenToPreferThis":"Use this endpoint when you need a lightweight, cost-effective way to resolve a public GitHub branch to its current commit metadata without pulling diff data. Ideal for CI/CD preflight checks, dependency audits, or monitoring pipelines that only need the HEAD commit state. Prefer this over full GitHub API calls when you want a simple, pay-per-call microservice that abstracts GitHub API auth and returns normalized commit info.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:43:21.194Z","isFirstParty":false,"canonicalSlug":"forest-infra-github-ref-commit-state-f0bf036a"}