{"modulePath":"github.com/macports/mpbot-github","version":"v0.0.2-0.20250912210159-d3d1f66c3d23","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package webhook\n\n## Types\n\n```go\ntype Receiver struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewReceiver(listenAddr string, hookSecret []byte, botSecret string, production bool, dbHelper db.DBHelper) *Receiver\n```\n\n```go\nfunc (receiver *Receiver) Shutdown()\n```\n\n```go\nfunc (receiver *Receiver) Start()\n```\n\n```go\ntype TravisWebhookPayload struct {\n\tID                int    `json:\"id\"`\n\tNumber            string `json:\"number\"`\n\tType              string `json:\"type\"`\n\tState             string `json:\"state\"`\n\tStatus            int    `json:\"status\"`\n\tResult            int    `json:\"result\"`\n\tStatusMessage     string `json:\"status_message\"`\n\tResultMessage     string `json:\"result_message\"`\n\tDuration          int    `json:\"duration\"`\n\tBuildURL          string `json:\"build_url\"`\n\tBranch            string `json:\"branch\"`\n\tPullRequest       bool   `json:\"pull_request\"`\n\tPullRequestNumber int    `json:\"pull_request_number\"`\n\tPullRequestTitle  string `json:\"pull_request_title\"`\n\tRepository        struct {\n\t\tID        int    `json:\"id\"`\n\t\tName      string `json:\"name\"`\n\t\tOwnerName string `json:\"owner_name\"`\n\t} `json:\"repository\"`\n\tMatrix []struct {\n\t\tID       int    `json:\"id\"`\n\t\tParentID int    `json:\"parent_id\"`\n\t\tNumber   string `json:\"number\"`\n\t\tState    string `json:\"state\"`\n\t\tConfig   struct {\n\t\t\tOs       string `json:\"os\"`\n\t\t\tOsxImage string `json:\"osx_image\"`\n\t\t} `json:\"config\"`\n\t\tStatus       int  `json:\"status\"`\n\t\tResult       int  `json:\"result\"`\n\t\tAllowFailure bool `json:\"allow_failure\"`\n\t} `json:\"matrix\"`\n}\n```\n\n","path":"github.com/macports/mpbot-github/pr/webhook","name":"webhook","synopsis":"","isRedistributable":true}
