mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-16 05:26:31 +00:00
Fix BB ambiguous commit status key (#4544)
Co-authored-by: Joan Flotats <joanflotats@bit2me.com>
This commit is contained in:
parent
013647340c
commit
21755bef4e
1 changed files with 2 additions and 2 deletions
|
@ -290,11 +290,11 @@ func (c *config) Dir(ctx context.Context, u *model.User, r *model.Repo, p *model
|
|||
}
|
||||
|
||||
// Status creates a pipeline status for the Bitbucket commit.
|
||||
func (c *config) Status(ctx context.Context, user *model.User, repo *model.Repo, pipeline *model.Pipeline, _ *model.Workflow) error {
|
||||
func (c *config) Status(ctx context.Context, user *model.User, repo *model.Repo, pipeline *model.Pipeline, workflow *model.Workflow) error {
|
||||
status := internal.PipelineStatus{
|
||||
State: convertStatus(pipeline.Status),
|
||||
Desc: common.GetPipelineStatusDescription(pipeline.Status),
|
||||
Key: "Woodpecker",
|
||||
Key: common.GetPipelineStatusContext(repo, pipeline, workflow),
|
||||
URL: common.GetPipelineStatusURL(repo, pipeline, nil),
|
||||
}
|
||||
return c.newClient(ctx, user).CreateStatus(repo.Owner, repo.Name, pipeline.Commit, &status)
|
||||
|
|
Loading…
Reference in a new issue