# GitHub Repository PR Merge Likelihood Predictor

> GitHub Repository PR Merge Likelihood Predictor is a paid API for AI agents from x402-api-24223879872.us-east1.run.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

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.

## Facts

- Endpoint: GET https://x402-api-24223879872.us-east1.run.app/v1/repo-merge?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-pr-merge-likelihood-predictor-04fc6048
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oHtQlrKCTSi9VFd6MhCYq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability github-repository-pr-merge-likelihood-predictor-04fc6048
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-pr-merge-likelihood-predictor-04fc6048/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-24223879872.us-east1.run.app](https://www.zero.xyz/host/x402-api-24223879872.us-east1.run.app/llms.txt)
