mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-09-05 20:07:25 +00:00
Update module github.com/google/go-github/v86 to v88 (#6626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: qwerty287 <qwerty287@posteo.de>
This commit is contained in:
@@ -22,10 +22,11 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/google/go-github/v86/github"
|
||||
"github.com/google/go-github/v88/github"
|
||||
github_mock "github.com/migueleliasweb/go-github-mock/src/mock"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"go.woodpecker-ci.org/woodpecker/v3/server/forge/github/fixtures"
|
||||
"go.woodpecker-ci.org/woodpecker/v3/server/model"
|
||||
@@ -148,7 +149,8 @@ func TestHook(t *testing.T) {
|
||||
)
|
||||
|
||||
// Create a GitHub client with the mocked HTTP client
|
||||
gh := github.NewClient(mockedHTTPClient)
|
||||
gh, err := github.NewClient(github.WithHTTPClient(mockedHTTPClient))
|
||||
require.NoError(t, err)
|
||||
|
||||
// Use the custom type as the key
|
||||
ctx := context.WithValue(context.Background(), githubClientKey, gh)
|
||||
|
||||
Reference in New Issue
Block a user