Skip to content

Commit

Permalink
Fix BB ambiguous commit status key (#4544)
Browse files Browse the repository at this point in the history
Co-authored-by: Joan Flotats <joanflotats@bit2me.com>
  • Loading branch information
j04n-f and Joan Flotats authored Dec 9, 2024
1 parent 0136473 commit 21755be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/forge/bitbucket/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21755be

Please sign in to comment.