Skip to content

Commit b346688

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 07020a4 + ee0770c commit b346688

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scm/driver/gitea/linker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (l *linker) Resource(ctx context.Context, repo string, ref scm.Reference) (
2020
switch {
2121
case scm.IsTag(ref.Path):
2222
t := scm.TrimRef(ref.Path)
23-
return fmt.Sprintf("%s%s/tag/%s", l.base, repo, t), nil
23+
return fmt.Sprintf("%s%s/src/tag/%s", l.base, repo, t), nil
2424
case scm.IsPullRequest(ref.Path):
2525
d := scm.ExtractPullRequest(ref.Path)
2626
return fmt.Sprintf("%s%s/pulls/%d", l.base, repo, d), nil

scm/driver/gitea/linker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func TestLink(t *testing.T) {
2929
},
3030
{
3131
path: "refs/tags/v1.0.0",
32-
want: "https://try.gitea.io/octocat/hello-world/tag/v1.0.0",
32+
want: "https://try.gitea.io/octocat/hello-world/src/tag/v1.0.0",
3333
},
3434
{
3535
path: "refs/heads/master",

0 commit comments

Comments
 (0)