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/v67 to v68 (#4635)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: qwerty287 <qwerty287@posteo.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/google/go-github/v67/github"
|
||||
"github.com/google/go-github/v68/github"
|
||||
"github.com/rs/zerolog/log"
|
||||
"golang.org/x/oauth2"
|
||||
|
||||
@@ -529,18 +529,18 @@ func (c *client) Status(ctx context.Context, user *model.User, repo *model.Repo,
|
||||
id, _ := strconv.Atoi(matches[1])
|
||||
|
||||
_, _, err := client.Repositories.CreateDeploymentStatus(ctx, repo.Owner, repo.Name, int64(id), &github.DeploymentStatusRequest{
|
||||
State: github.String(convertStatus(pipeline.Status)),
|
||||
Description: github.String(common.GetPipelineStatusDescription(pipeline.Status)),
|
||||
LogURL: github.String(common.GetPipelineStatusURL(repo, pipeline, nil)),
|
||||
State: github.Ptr(convertStatus(pipeline.Status)),
|
||||
Description: github.Ptr(common.GetPipelineStatusDescription(pipeline.Status)),
|
||||
LogURL: github.Ptr(common.GetPipelineStatusURL(repo, pipeline, nil)),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
_, _, err := client.Repositories.CreateStatus(ctx, repo.Owner, repo.Name, pipeline.Commit, &github.RepoStatus{
|
||||
Context: github.String(common.GetPipelineStatusContext(repo, pipeline, workflow)),
|
||||
State: github.String(convertStatus(workflow.State)),
|
||||
Description: github.String(common.GetPipelineStatusDescription(workflow.State)),
|
||||
TargetURL: github.String(common.GetPipelineStatusURL(repo, pipeline, workflow)),
|
||||
Context: github.Ptr(common.GetPipelineStatusContext(repo, pipeline, workflow)),
|
||||
State: github.Ptr(convertStatus(workflow.State)),
|
||||
Description: github.Ptr(common.GetPipelineStatusDescription(workflow.State)),
|
||||
TargetURL: github.Ptr(common.GetPipelineStatusURL(repo, pipeline, workflow)),
|
||||
})
|
||||
return err
|
||||
}
|
||||
@@ -553,7 +553,7 @@ func (c *client) Activate(ctx context.Context, u *model.User, r *model.Repo, lin
|
||||
}
|
||||
client := c.newClientToken(ctx, u.AccessToken)
|
||||
hook := &github.Hook{
|
||||
Name: github.String("web"),
|
||||
Name: github.Ptr("web"),
|
||||
Events: []string{
|
||||
"push",
|
||||
"pull_request",
|
||||
@@ -561,7 +561,7 @@ func (c *client) Activate(ctx context.Context, u *model.User, r *model.Repo, lin
|
||||
},
|
||||
Config: &github.HookConfig{
|
||||
URL: &link,
|
||||
ContentType: github.String("form"),
|
||||
ContentType: github.Ptr("form"),
|
||||
},
|
||||
}
|
||||
_, _, err := client.Repositories.CreateHook(ctx, r.Owner, r.Name, hook)
|
||||
|
Reference in New Issue
Block a user