{"uid":"cap_oHtQlrKCTSi9VFd6MhCYq","slug":"github-repository-pr-merge-likelihood-predictor-04fc6048","name":"GitHub Repository PR Merge Likelihood Predictor","description":"Predicts whether a GitHub repository will merge an AI-authored or external pull request, based on its stated AI/contribution policy and historical merge rates.","url":"https://x402-api-24223879872.us-east1.run.app/v1/repo-merge?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["repo"],"properties":{"repo":{"type":"string","description":"owner/name, e.g. facebook/react"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"repo":{"type":"string"},"flags":{"type":"array","items":{"type":"string"}},"score":{"type":"number"},"aiPolicy":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"string"}},"classification":{"enum":["forbidden","disclosure_required","allowed","unknown"],"type":"string"}}},"archived":{"type":"boolean"},"mergeStats":{"type":"object","properties":{"memberMergeRate":{"type":"number"},"externalMergeRate":{"type":"number"},"botAuthoredPrCount":{"type":"number"},"lastExternalMergeAt":{"type":["string","null"]},"externalPrSampleSize":{"type":"number"},"medianHoursToMergeExternal":{"type":["number","null"]}}},"lastPushedAt":{"type":"string"},"defaultBranch":{"type":"string"},"openIssuesAndPrsCount":{"type":"number"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mHuE6FcAp8m5eKqLKADJG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Predicts the likelihood that a GitHub repository will merge an AI-authored or external pull request, based on its AI/contribution policy and historical merge rate data.","exampleAgentPrompt":"What are the chances my AI-authored PR would get merged into huggingface/transformers — does the repo have an AI contribution policy, and what's the historical external merge rate?","exampleUseCases":[{"title":"Screen repo before submitting AI-generated PR","prompt":"Before I open a pull request on microsoft/vscode using my AI coding assistant, can you check if they have a policy against AI-authored contributions and what their external merge rate looks like?"},{"title":"Compare openness of competing open source projects","prompt":"I'm deciding whether to contribute to pytorch/pytorch or tensorflow/tensorflow — can you check both repos' external merge rates and AI contribution policies so I know where my PR is more likely to land?"},{"title":"Automated open-source contribution triage","prompt":"For the repo langchain-ai/langchain, what's the likelihood my external pull request gets merged? Give me the merge score, any flags, and whether they explicitly allow or forbid AI-authored code."}],"resultDescription":"Returns a JSON object with a numeric merge likelihood score, an AI policy classification (forbidden/disclosure_required/allowed/unknown) with matching policy text snippets, external and member merge rates, bot-authored PR count, median hours to merge external PRs, last external merge timestamp, sample size used, whether the repo is archived, and any warning flags about the repository's contribution posture.","failureModes":["Invalid or non-existent repository slug returns an error or empty result","Private repositories that are inaccessible to the crawler may return incomplete data","Repos with very few external PRs will have low-confidence merge rate estimates","Rate limiting or upstream GitHub API unavailability may cause transient failures","Payment of $0.05 USDC required per call; insufficient balance or payment failure blocks the request"],"whenToPreferThis":"Use this endpoint when you need to programmatically assess whether a specific GitHub repository is receptive to AI-authored or external pull requests before investing time in a contribution. It is uniquely suited for agents that automate open-source contributions and need to triage repositories by their AI policy stance and historical merge behavior — something that cannot be determined from a simple GitHub API call alone.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:41:33.639Z","isFirstParty":false,"canonicalSlug":"github-repository-pr-merge-likelihood-predictor-04fc6048"}