mirror of
https://codeberg.org/crowci/crow.git
synced 2025-08-12 06:02:53 +03:00
Rename link
to url
(#2812)
As of https://woodpecker-ci.org/docs/next/usage/terminiology#conventions
This commit is contained in:
@@ -488,7 +488,7 @@ func (c *client) Status(ctx context.Context, user *model.User, repo *model.Repo,
|
||||
client := c.newClientToken(ctx, user.Token)
|
||||
|
||||
if pipeline.Event == model.EventDeploy {
|
||||
matches := reDeploy.FindStringSubmatch(pipeline.Link)
|
||||
matches := reDeploy.FindStringSubmatch(pipeline.ForgeURL)
|
||||
if len(matches) != 2 {
|
||||
return nil
|
||||
}
|
||||
@@ -497,7 +497,7 @@ func (c *client) Status(ctx context.Context, user *model.User, repo *model.Repo,
|
||||
_, _, 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.GetPipelineStatusLink(repo, pipeline, nil)),
|
||||
LogURL: github.String(common.GetPipelineStatusURL(repo, pipeline, nil)),
|
||||
})
|
||||
return err
|
||||
}
|
||||
@@ -506,7 +506,7 @@ func (c *client) Status(ctx context.Context, user *model.User, repo *model.Repo,
|
||||
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.GetPipelineStatusLink(repo, pipeline, workflow)),
|
||||
TargetURL: github.String(common.GetPipelineStatusURL(repo, pipeline, workflow)),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user