Refactor RefName (#33234)

And fix some FIXMEs
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-01-13 14:01:53 +08:00
1 parent 81352542fd
commit 2ea929a952
13 files changed
+58 -60

No files matched your search

+1 -1
View File
@@ -469,7 +469,7 @@ func (a *actionNotifier) NewRelease(ctx context.Context, rel *repo_model.Release
Repo: rel.Repo,
IsPrivate: rel.Repo.IsPrivate,
Content: rel.Title,
RefName: rel.TagName, // FIXME: use a full ref name?
RefName: git.RefNameFromTag(rel.TagName).String(), // Other functions in this file all use "refFullName.String()"
}); err != nil {
log.Error("NotifyWatchers: %v", err)
}