1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-25 19:58:36 +00:00

chore: add comments

This commit is contained in:
Jason Song
2023-01-05 14:58:49 +08:00
parent e8dbe827cb
commit 4bb8604180

View File

@@ -199,7 +199,9 @@ func notifyRelease(ctx context.Context, doer *user_model.User, rel *repo_model.R
func notifyPackage(ctx context.Context, sender *user_model.User, pd *packages_model.PackageDescriptor, action api.HookPackageAction) {
if pd.Repository == nil {
// TODO https://github.com/go-gitea/gitea/pull/17940
// When a package is uploaded to an organization, it could trigger an event to notify.
// So the repository could be nil, however, actions can't support that yet.
// See https://github.com/go-gitea/gitea/pull/17940
return
}