summaryrefslogtreecommitdiffstats
path: root/modules/webhook/slack.go
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2020-01-04 16:20:15 -0600
committerzeripath <art27@cantab.net>2020-01-04 22:20:15 +0000
commitfb3a6aba7de2a22e102636c010b7c1faf740f1d7 (patch)
tree86a798b39eba88bd7d9c42cea302ab9193400e6d /modules/webhook/slack.go
parent07439d8059f80972aaf6b49dd3f3ff699d775b01 (diff)
downloadgitea-fb3a6aba7de2a22e102636c010b7c1faf740f1d7.tar.gz
gitea-fb3a6aba7de2a22e102636c010b7c1faf740f1d7.zip
Only show sender if it makes sense (#9601)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'modules/webhook/slack.go')
-rw-r--r--modules/webhook/slack.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/webhook/slack.go b/modules/webhook/slack.go
index 508cb13b8f..11ad4c1b8b 100644
--- a/modules/webhook/slack.go
+++ b/modules/webhook/slack.go
@@ -144,7 +144,7 @@ func getSlackForkPayload(p *api.ForkPayload, slack *SlackMeta) (*SlackPayload, e
}
func getSlackIssuesPayload(p *api.IssuePayload, slack *SlackMeta) (*SlackPayload, error) {
- text, issueTitle, attachmentText, color := getIssuesPayloadInfo(p, SlackLinkFormatter)
+ text, issueTitle, attachmentText, color := getIssuesPayloadInfo(p, SlackLinkFormatter, true)
pl := &SlackPayload{
Channel: slack.Channel,
@@ -167,7 +167,7 @@ func getSlackIssuesPayload(p *api.IssuePayload, slack *SlackMeta) (*SlackPayload
}
func getSlackIssueCommentPayload(p *api.IssueCommentPayload, slack *SlackMeta) (*SlackPayload, error) {
- text, issueTitle, color := getIssueCommentPayloadInfo(p, SlackLinkFormatter)
+ text, issueTitle, color := getIssueCommentPayloadInfo(p, SlackLinkFormatter, true)
return &SlackPayload{
Channel: slack.Channel,
@@ -184,7 +184,7 @@ func getSlackIssueCommentPayload(p *api.IssueCommentPayload, slack *SlackMeta) (
}
func getSlackReleasePayload(p *api.ReleasePayload, slack *SlackMeta) (*SlackPayload, error) {
- text, _ := getReleasePayloadInfo(p, SlackLinkFormatter)
+ text, _ := getReleasePayloadInfo(p, SlackLinkFormatter, true)
return &SlackPayload{
Channel: slack.Channel,
@@ -239,7 +239,7 @@ func getSlackPushPayload(p *api.PushPayload, slack *SlackMeta) (*SlackPayload, e
}
func getSlackPullRequestPayload(p *api.PullRequestPayload, slack *SlackMeta) (*SlackPayload, error) {
- text, issueTitle, attachmentText, color := getPullRequestPayloadInfo(p, SlackLinkFormatter)
+ text, issueTitle, attachmentText, color := getPullRequestPayloadInfo(p, SlackLinkFormatter, true)
pl := &SlackPayload{
Channel: slack.Channel,