1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-12 06:02:53 +03:00

fix(deps): update module github.com/google/go-github/v55 to v56 (#2573)

This commit is contained in:
renovate[bot]
2023-10-12 15:28:00 +02:00
committed by GitHub
parent 0623eefd3b
commit b1cedecc42
6 changed files with 8 additions and 23 deletions

View File

@@ -25,7 +25,7 @@ import (
"strconv"
"strings"
"github.com/google/go-github/v55/github"
"github.com/google/go-github/v56/github"
"github.com/rs/zerolog/log"
"golang.org/x/oauth2"
@@ -556,7 +556,7 @@ func (c *client) Branches(ctx context.Context, u *model.User, r *model.Repo, p *
// BranchHead returns the sha of the head (latest commit) of the specified branch
func (c *client) BranchHead(ctx context.Context, u *model.User, r *model.Repo, branch string) (string, error) {
token := common.UserToken(ctx, r, u)
b, _, err := c.newClientToken(ctx, token).Repositories.GetBranch(ctx, r.Owner, r.Name, branch, true)
b, _, err := c.newClientToken(ctx, token).Repositories.GetBranch(ctx, r.Owner, r.Name, branch, 1)
if err != nil {
return "", err
}