diff options
author | 赵智超 <1012112796@qq.com> | 2020-07-30 03:20:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 15:20:54 -0400 |
commit | 1f12dc8e8862da8546fd9d984abdc7f69dd95f11 (patch) | |
tree | c90da9326eb89dc57cf7e9625fe34542a88b41b4 /models | |
parent | 2fd78c151e0e49db113078095f1d9e8c7478e828 (diff) | |
download | gitea-1f12dc8e8862da8546fd9d984abdc7f69dd95f11.tar.gz gitea-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')
-rw-r--r-- | models/action.go | 1 | ||||
-rw-r--r-- | models/repo_watch.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index 59ccdb2d4c..d6dbcdc671 100644 --- a/models/action.go +++ b/models/action.go @@ -49,6 +49,7 @@ const ( ActionApprovePullRequest // 21 ActionRejectPullRequest // 22 ActionCommentPull // 23 + ActionPublishRelease // 24 ) // Action represents user operation type and other information to 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 } |