From bd8d9181d3afe57153aa4efeee534fbfac42cdc3 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Tue, 28 Dec 2021 16:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E5=AE=9E=E6=97=B6=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=85=AC=E6=9C=89=E5=BA=93=E7=9A=84action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/repo_watch.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/repo_watch.go b/models/repo_watch.go index 1d6b7a31c..1ebc0ebec 100644 --- a/models/repo_watch.go +++ b/models/repo_watch.go @@ -286,7 +286,9 @@ func NotifyWatchers(actions ...*Action) error { func producer(actions ...*Action) { for _, action := range actions { - ActionChan <- action + if !action.IsPrivate{ + ActionChan <- action + } } }