Browse Source

change gitea messages to be silent and wekan messages to be loud.

Andreas Peters 3 months ago
parent
commit
69742aac33
Signed by: Andreas Peters <ap@aventer.biz> GPG Key ID: 6A83F12541CFCCF9
3 changed files with 4 additions and 4 deletions
  1. 2
    2
      Dockerfile
  2. 1
    1
      services/gitea/gitea.go
  3. 1
    1
      services/wekan/wekan.go

+ 2
- 2
Dockerfile View File

@@ -19,5 +19,5 @@ RUN cd /go-avbot && \
19 19
 
20 20
 EXPOSE 4050
21 21
 
22
-#ENTRYPOINT ["/run.sh"]
23
-CMD ["/bin/sh"]
22
+ENTRYPOINT ["/run.sh"]
23
+#CMD ["/bin/sh"]

+ 1
- 1
services/gitea/gitea.go View File

@@ -185,7 +185,7 @@ func (s *Service) OnReceiveWebhook(w http.ResponseWriter, req *http.Request, cli
185 185
 
186 186
 			msg := gomatrix.HTMLMessage{
187 187
 				Body:          message,
188
-				MsgType:       "m.text",
188
+				MsgType:       "m.notice",
189 189
 				Format:        "org.matrix.custom.html",
190 190
 				FormattedBody: util.MarkdownRender(message),
191 191
 			}

+ 1
- 1
services/wekan/wekan.go View File

@@ -123,7 +123,7 @@ func (s *Service) OnReceiveWebhook(w http.ResponseWriter, req *http.Request, cli
123 123
 			}
124 124
 			msg := gomatrix.TextMessage{
125 125
 				Body:    notif.Text,
126
-				MsgType: "m.notice",
126
+				MsgType: "m.text",
127 127
 			}
128 128
 
129 129
 			logger.WithFields(log.Fields{

Loading…
Cancel
Save