Browse Source

Fix webhook sample code

Closes #478.

Change-Id: I90e33c07431e868322629dc337000430c38d3b1d
Keita Urashima 9 years ago
committed by Glenn Lewis
parent
commit
7baedea38f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      github/messages.go

+ 2
- 2
github/messages.go View File

@ -171,9 +171,9 @@ func WebHookType(r *http.Request) string {
// event, err := github.ParseWebHook(github.WebHookType(r), payload) // event, err := github.ParseWebHook(github.WebHookType(r), payload)
// if err != nil { ... } // if err != nil { ... }
// switch event := event.(type) { // switch event := event.(type) {
// case CommitCommentEvent:
// case *github.CommitCommentEvent:
// processCommitCommentEvent(event) // processCommitCommentEvent(event)
// case CreateEvent:
// case *github.CreateEvent:
// processCreateEvent(event) // processCreateEvent(event)
// ... // ...
// } // }


Loading…
Cancel
Save