fix(bitbucketDC): manual event has commit broken link (#5160)

Co-authored-by: tal <tal@localhost>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Levy-Tal 2025-05-20 13:13:13 +03:00 committed by GitHub
parent 35ad08427a
commit 83229e8720
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -377,7 +377,7 @@ func (c *client) BranchHead(ctx context.Context, u *model.User, r *model.Repo, b
if branch.DisplayID == b {
return &model.Commit{
SHA: branch.LatestCommit,
ForgeURL: fmt.Sprintf("%s/commits/%s", r.ForgeURL, branch.LatestCommit),
ForgeURL: fmt.Sprintf("%s/commits/%s", strings.TrimSuffix(r.ForgeURL, "/browse"), branch.LatestCommit),
}, nil
}
}