Add Git Ref To Build Status in BitbucketDatacenter (#4724)

Co-authored-by: tal <tal@localhost>
This commit is contained in:
Levy-Tal 2025-01-23 15:11:09 +02:00 committed by GitHub
parent 58f26d1dbb
commit 983dfd1157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -315,6 +315,7 @@ func (c *client) Status(ctx context.Context, u *model.User, repo *model.Repo, pi
URL: common.GetPipelineStatusURL(repo, pipeline, workflow),
Key: common.GetPipelineStatusContext(repo, pipeline, workflow),
Description: common.GetPipelineStatusDescription(pipeline.Status),
Ref: pipeline.Ref,
}
_, err = bc.Projects.CreateBuildStatus(ctx, repo.Owner, repo.Name, pipeline.Commit, status)
return err