Added http headers as another param to ProcessPayloadFunc

This commit is contained in:
Lars Lehtonen
2016-10-20 15:53:15 -07:00
parent 6bfbae2ae3
commit 16a6ac7a61
7 changed files with 60 additions and 52 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ func main() {
}
// HandleRelease handles GitHub release events
func HandleRelease(payload interface{}) {
func HandleRelease(payload interface{}, header webhooks.Header) {
fmt.Println("Handling Release")
@@ -41,7 +41,7 @@ func HandleRelease(payload interface{}) {
}
// HandlePullRequest handles GitHub pull_request events
func HandlePullRequest(payload interface{}) {
func HandlePullRequest(payload interface{}, header webhooks.Header) {
fmt.Println("Handling Pull Request")
+1 -1
View File
@@ -24,7 +24,7 @@ func main() {
}
// HandleMultiple handles multiple GitHub events
func HandleMultiple(payload interface{}) {
func HandleMultiple(payload interface{}, header webhooks.Header) {
fmt.Println("Handling Payload..")