mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user