From 21755bef4e286168cc6e04191d89b64484d23e7a Mon Sep 17 00:00:00 2001 From: Joan Flotats <96056718+j04n-f@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:23:46 +0100 Subject: [PATCH] Fix BB ambiguous commit status key (#4544) Co-authored-by: Joan Flotats --- server/forge/bitbucket/bitbucket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/forge/bitbucket/bitbucket.go b/server/forge/bitbucket/bitbucket.go index 8666e56bd..95facb7f7 100644 --- a/server/forge/bitbucket/bitbucket.go +++ b/server/forge/bitbucket/bitbucket.go @@ -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)