Skip to content

Commit e92d772

Browse files
committed
fix typo
1 parent 0e8bde9 commit e92d772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/git/commit_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (status *CommitStatus) cutTargetURLGiteaActionsPrefix(ctx context.Context)
233233
}
234234

235235
prefix := status.Repo.Link() + "/actions"
236-
return strings.CutPrefix(prefix, status.TargetURL)
236+
return strings.CutPrefix(status.TargetURL, prefix)
237237
}
238238

239239
// ParseGiteaActionsTargetURL parses the commit status target URL as Gitea Actions link

0 commit comments

Comments
 (0)