{
    "schemaVersion": 1,
    "slug": "github-code-review-bot",
    "name": "GitHub Code Review Bot",
    "description": "Have an agent review pull requests and respond to GitHub mentions.",
    "categories": [
        "developer"
    ],
    "featured": true,
    "branding": {
        "logoUrl": "/brands/apps/github.svg",
        "darkLogoUrl": "/brands/apps/github-dark.svg"
    },
    "urlPatterns": [],
    "methods": [
        {
            "key": "chat-agent",
            "label": "Chat with an agent",
            "purpose": "channel",
            "provider": "github",
            "transport": "chat_sdk",
            "auth": "api_key",
            "ownershipModes": [
                "customer"
            ],
            "whenToUse": "Let people in GitHub start and continue work with one Paperclip agent.",
            "credentialFields": [
                {
                    "key": "appId",
                    "label": "GitHub App ID",
                    "type": "text",
                    "required": true,
                    "placeholder": "123456",
                    "secret": false
                },
                {
                    "key": "privateKey",
                    "label": "Private key (PEM)",
                    "type": "textarea",
                    "required": true,
                    "placeholder": "-----BEGIN RSA PRIVATE KEY-----",
                    "secret": true
                }
            ],
            "guidanceMd": "Generate the webhook secret in Paperclip, then create one private GitHub App with active SSL-verified webhooks and Issues and Pull requests read/write permission. Subscribe to issue_comment and pull_request_review_comment for comment mentions; add issues and pull_request for description mentions, and pull_request_review for review-summary mentions. The wizard selects all five. GitHub sends installation and installation_repositories automatically. Install the App only on repositories where people may mention the agent.",
            "consoleLinks": {
                "register": "https://github.com/settings/apps/new",
                "docs": "https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app"
            },
            "riskTier": "S3",
            "requiredResourceFilters": [
                "organization",
                "repository"
            ]
        }
    ]
}
