Preparations for the new v6 branch: some updates for .v6 url

This commit is contained in:
Anton Krivenko
2021-01-06 02:33:31 +03:00
parent 59fb74817c
commit 1f79ca202d
4 changed files with 11 additions and 10 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
language: go
go:
- 1.13.15
- 1.15.6
- tip
matrix:
allow_failures:
@@ -21,6 +21,7 @@ before_install:
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v3
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v4
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v5
- ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/webhooks.v6
before_script:
- go get -t ./...
@@ -29,6 +30,6 @@ script:
- make test
after_success: |
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
[ $TRAVIS_GO_VERSION = 1.15.6 ] &&
overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug &&
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
+6 -6
View File
@@ -1,10 +1,10 @@
Library webhooks
================
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.17.0-green.svg)
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-6.0.0-green.svg)
[![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks)
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5)
[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)
[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks.v5?status.svg)](https://godoc.org/gopkg.in/go-playground/webhooks.v5)
[![GoDoc](https://godoc.org/gopkg.in/go-playground/webhooks.v6?status.svg)](https://godoc.org/gopkg.in/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
@@ -24,17 +24,17 @@ Installation
Use go get.
```shell
go get -u gopkg.in/go-playground/webhooks.v5
go get -u gopkg.in/go-playground/webhooks.v6
```
Then import the package into your own code.
import "gopkg.in/go-playground/webhooks.v5"
import "gopkg.in/go-playground/webhooks.v6"
Usage and Documentation
------
Please see http://godoc.org/gopkg.in/go-playground/webhooks.v5 for detailed usage docs.
Please see http://godoc.org/gopkg.in/go-playground/webhooks.v6 for detailed usage docs.
##### Examples:
```go
@@ -45,7 +45,7 @@ import (
"net/http"
"gopkg.in/go-playground/webhooks.v5/github"
"gopkg.in/go-playground/webhooks.v6/github"
)
const (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"gopkg.in/go-playground/webhooks.v5/github"
"gopkg.in/go-playground/webhooks.v6/github"
)
const (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"gopkg.in/go-playground/webhooks.v5/github"
"gopkg.in/go-playground/webhooks.v6/github"
)
const (