Skip to content

Commit

Permalink
Update list of handled webhooks + fix some typos (#150)
Browse files Browse the repository at this point in the history
Update list of handled webhooks + fix some typos
  • Loading branch information
Ph0tonic committed May 21, 2023
1 parent e9470cb commit 69430a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Library webhooks
[![GoDoc](https://godoc.org/github.com/go-playground/webhooks/v6?status.svg)](https://godoc.org/github.com/go-playground/webhooks/v6)
![License](https://img.shields.io/dub/l/vibe-d.svg)

Library webhooks allows for easy receiving and parsing of GitHub, Bitbucket and GitLab Webhook Events
Library webhooks allows for easy receiving and parsing of GitHub, Bitbucket, GitLab, Docker Hub and Gogs Webhook Events

Features:

Expand Down Expand Up @@ -53,13 +53,13 @@ const (
)

func main() {
hook, _ := github.New(github.Options.Secret("MyGitHubSuperSecretSecrect...?"))
hook, _ := github.New(github.Options.Secret("MyGitHubSuperSecretSecret...?"))

http.HandleFunc(path, func(w http.ResponseWriter, r *http.Request) {
payload, err := hook.Parse(r, github.ReleaseEvent, github.PullRequestEvent)
if err != nil {
if err == github.ErrEventNotFound {
// ok event wasn;t one of the ones asked to be parsed
// ok event wasn't one of the ones asked to be parsed
}
}
switch payload.(type) {
Expand Down Expand Up @@ -89,4 +89,5 @@ If the changes being proposed or requested are breaking changes, please create a

License
------

Distributed under MIT License, please see license file in code for more details.

0 comments on commit 69430a8

Please sign in to comment.