maplion
9/8/2016 - 6:05 PM

JSON Schema for GitHub Webhook Payload

JSON Schema for GitHub Webhook Payload

{
    "$schema": "https://gist.githubusercontent.com/maplion/7729e8dcb428d7eb64faef88acf05812/raw/e204468f39c8b17a1639c238d3eae1dbcec4b7e2/GitHub_Webhook_Payload_Schema.json",
    "title": "GitHub Payload",
    "type": "object",
    "action": {
        "type": "string"
    },
    "issue": {
        "url": {
            "description": "The URL of the repository the hook was sent from",
            "type": "string"        
        },
        "number": {
            "type": "number"        
        }
    },
    "repository": {
        "id": {
            "type": "number"        
        },
        "full_name": {
            "description": "Full name of repository",
            "type": "string"        
        },
        "owner": {
            "login": {
                "type": "string"           
            },
            "id": {
                "type": "number"            
            }            
        }
    },
    "sender": {
        "login": {
            "type": "string"        
        },
        "id": {
            "type": "number"        
        }
    }
    
}