Skip to content

Commit

Permalink
Fix Slack webhook fork message (#7774) (#7783)
Browse files Browse the repository at this point in the history
The order of forkee and fork was mixed up.
  • Loading branch information
WGH- authored and techknowlogick committed Aug 7, 2019
1 parent 7b92f91 commit 4f39e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/webhook_slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4f39e56

Please sign in to comment.