mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-02 04:03:48 +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:
parent
35ad08427a
commit
83229e8720
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue