From 4f39e5679518816e2c03811411ed4a61b0de80b2 Mon Sep 17 00:00:00 2001 From: WGH Date: Wed, 7 Aug 2019 18:57:08 +0300 Subject: [PATCH] Fix Slack webhook fork message (#7774) (#7783) The order of forkee and fork was mixed up. --- models/webhook_slack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/webhook_slack.go b/models/webhook_slack.go index f422953e4..9c179bb24 100644 --- a/models/webhook_slack.go +++ b/models/webhook_slack.go @@ -120,8 +120,8 @@ func getSlackDeletePayload(p *api.DeletePayload, slack *SlackMeta) (*SlackPayloa // getSlackForkPayload composes Slack payload for forked by a repository. func getSlackForkPayload(p *api.ForkPayload, slack *SlackMeta) (*SlackPayload, error) { - baseLink := SlackLinkFormatter(p.Repo.HTMLURL, p.Repo.Name) - forkLink := SlackLinkFormatter(p.Forkee.HTMLURL, p.Forkee.FullName) + baseLink := SlackLinkFormatter(p.Forkee.HTMLURL, p.Forkee.FullName) + forkLink := SlackLinkFormatter(p.Repo.HTMLURL, p.Repo.FullName) text := fmt.Sprintf("%s is forked to %s", baseLink, forkLink) return &SlackPayload{ Channel: slack.Channel,