summaryrefslogtreecommitdiffstats
path: root/models/repo_watch.go
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-07-29 21:20:54 +0200
committerGitHub <noreply@github.com>2020-07-29 21:20:54 +0200
commit1f12dc8e8862da8546fd9d984abdc7f69dd95f11 (patch)
treec90da9326eb89dc57cf7e9625fe34542a88b41b4 /models/repo_watch.go
parentMove jquery-minicolors to npm/webpack (#12305) (diff)
downloadforgejo-1f12dc8e8862da8546fd9d984abdc7f69dd95f11.tar.xz
forgejo-1f12dc8e8862da8546fd9d984abdc7f69dd95f11.zip
Add action feed for new release (#12324)
* Add action feed for new release Signed-off-by: a1012112796 <1012112796@qq.com> * fix lint * Apply suggestions from code review * Add ReleaseID to the action table * Remove error message * Fold the attachments download list * remove attchment download list * simplify code * fix create release from existing tag * simplify ui * translation change * fix test Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models/repo_watch.go')
-rw-r--r--models/repo_watch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_watch.go b/models/repo_watch.go
index 11cfa88918..6cdf9b2af5 100644
--- a/models/repo_watch.go
+++ b/models/repo_watch.go
@@ -252,7 +252,7 @@ func notifyWatchers(e Engine, actions ...*Action) error {
act.Repo.Units = nil
switch act.OpType {
- case ActionCommitRepo, ActionPushTag, ActionDeleteTag, ActionDeleteBranch:
+ case ActionCommitRepo, ActionPushTag, ActionDeleteTag, ActionPublishRelease, ActionDeleteBranch:
if !permCode[i] {
continue
}