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:
renovate[bot]
2026-05-23 17:07:54 +02:00
committed by GitHub
co-authored by lnx01 qwerty287
parent 307b4a074d
commit 3993607409
7 changed files with 86 additions and 33 deletions
+4 -2
View File
@@ -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)